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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
vstefano
Helper I
Helper I

YTD Date dynamic axis Dimension based on selected value

Good morning,

I have a filter to select a snapshot date. I have a chart which has as horizontal axis the snapshot date.

I want the horizontal axis to show me just the snapshot date that are equal or lower to the one selected.

I have had a look at blog, articles, features etc but this seems to be a particular case.

 

If I disconnect the filter and the chart than I get all the snapshot dates, also the one that are after the one selected.

If I connect the filter and the chart, I get only the selected snapshot date.

 

Finally I have tried to embed the selected snapshot date in a measure using SELECTEDVALUE but it is not possible the axis of a chart referring to the filter measure.

Last but not least I can create a dynamic measure that considers all the snapshot date values lower than the selected date, but I cannot use this measure as a category for the chart.

 

In the example below I want to display all the snapshot dates up to april 24.

vstefano_0-1731167660467.png

 

 

 

 

vstefano_1-1731167853972.png

Any hint, suggestion would be apreaciated.

 

Thanks in advance,

Stefano

 

3 ACCEPTED SOLUTIONS
DataInsights
Super User
Super User

@vstefano,

 

One option is to use a Before slicer. If that's not feasible, check out the article below:

 

https://www.sqlbi.com/articles/show-previous-6-months-of-data-from-single-slicer-selection/ 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Ashish_Mathur
Super User
Super User

Hi,

I have solved a similar question in the attached files.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

Fantastic, thanks a lot. The article gave me the solution I needed.

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

I have solved a similar question in the attached files.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Very good solution, my compliment. I have choosen the one of DataInsights because it suits more my need.

Thank you.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
DataInsights
Super User
Super User

@vstefano,

 

One option is to use a Before slicer. If that's not feasible, check out the article below:

 

https://www.sqlbi.com/articles/show-previous-6-months-of-data-from-single-slicer-selection/ 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Fantastic, thanks a lot. The article gave me the solution I needed.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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