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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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