Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I'm importing a synapse query in Power BI, the query consists of dynamic date joining condition based on user selection in the slicer. How to achieve this functionality in Power BI? Please find the screenshot for the reference:
My requirement is not to hardcode the date condition in query, it should be dynamic, based on what dates user selected on slicer.
Thanks,
MG
@Anonymous , You can create measure/s and use that in visual or as a visual level filter
countrows(filter(Table, Table[Invoice Date] >= date(year(Today())-2,1,1) && Table[Invoice Date] <=today()) )
Hi Amit,
Thanks for the reply!!
My requirement is related to data source joining condition based on user selection, not related to filtering condition. Means whatever slicer selection the user select in canvas, the sql query in Power Query Editor modifies it is joining condition and return dataset or query output with respect to that slicer selection from the datasource.
Thanks