I am looking for a query to extract data from sql but I would like to know if power bi has the functionality of passing the value of a parameter in for example: start date and end date to the query and that this value is captured by the user before if the query is executed, it is similar to what Reporting Services has, where it is very easy to generate the date parameters and automatically pass them to the query.
select CARLINE,veh_numserie AS SERIE,veh_anmodelo as MODELO,VENDEDOR,VENTA,VTE_FECHDOCTO AS FECHAFACTURA ,
VTE_STATUS AS ESTATUS,VTE_DOCTO AS FACTURA,COSTO,pen_isan AS ISAN,SUBTOTAL AS PRECIO,TOTAL,CLIENTE , CIUDAD ,
CANT=CASE WHEN SUBTOTAL >=0 THEN 1 ELSE -1 END
from libroventas where convert(datetime, vte_fechope,103) between
convert(datetime,'01/01/2018',103) and convert(datetime,'01/04/2018',103)
VENTA NOT LIKE 'INTERCAMBIO%' AND LIB_CVEUSU='GMI' ORDER BY 1