Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nsatyabrat7
Helper I
Helper I

passing slicer value to query

Hi, 

 

I have a report generated from sql quey, having a due date filed. My requirement is to create a slicer and  whatsever the date a user selects in the slicer the report should show all the data where due date is less than the selected slicer date.

 

I am not able to pass the slicer date to sql query. 

 

Can you guide me guys in finding the best possible way..

3 REPLIES 3
Greg_Deckler
Super User
Super User

So generally you would import all the data or be in DirectQuery mode and you would filter that way. I'm a bit confused.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Currently i am importing the data to power bi. But i am fine with direct query mode also..

Hi @nsatyabrat7 ,

 

I'm confused about your question. In import mode or DQ mode,  when you use slicer for date column, it will apply filter on the data. You don't need to passing slicer value to query.

 

Capture3.PNG

 

Best Regards,

Dedmon Dai

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.