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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Referencing date slider

If i have a date slider showing something like 4/1/2017 - 4/30/2017, would I be able to have 1 chart showing 4/1/2017 and the second chart showing 3/1/2017 - 3/31/2017.

A workaround would be to have 2 charts that interact with 2 different sliders, but I'd like the second one to reference the same slider minus 1 month. Is this possible?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous,

Please check the DAX in the following modified PBIX file.

https://1drv.ms/u/s!AhsotbnGu1Nok2cSXwsGbCvnF-_x

Regards,
Lydia

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

@Anonymous,

Please check the DAX in the following modified PBIX file.

https://1drv.ms/u/s!AhsotbnGu1Nok2cSXwsGbCvnF-_x

Regards,
Lydia

Anonymous
Not applicable

Hi Lydia,

 

Thank you for the quick response. This is exactly that I'm looking for!

 

I am running into a bit of an issue trying to replicate this though. Would I use the Date table or the Survey's Date as the slider? I tried using it on my actual dataset and the values are coming up pretty inconsistently.

ie. if I put survey date slider to April, it says March is 3.5, but if I put slider to March, it says that it's 3.4.

 

If I use the date table as a slider, it shows blank. I'll see if I can post my data set

 

Best regards,

Greg_Deckler
Community Champion
Community Champion

Perhaps but would depend on your data and what you are trying to accomplish. Basically everything in your other visualization would need to be measures that are calculated based upon using ALL to override your slicer filter and then do the necessary date magic. 

 

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



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...
Anonymous
Not applicable

The slider is used for fields that can be a calculated field. It's a basic survey results(1-4) average over the time span, The gauge current shows average for April, but we also want to compare it with last month's average.

OK, except that it is impossible for this to be answered specifically or accurately without some sample/example data and your expected output from that sample/example data. Posted as text preferrably to make it easier to copy and paste into an Enter Data query.



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...
Anonymous
Not applicable

Hi Greg,

 

I've attached an example file. 

example.pbix

download

Let me know if that makes sense.

 

Thanks!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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