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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
Community Champion
Community Champion

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



Follow on LinkedIn
@ 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!:
DAX For Humans

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors