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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
mwmchugh215
Frequent Visitor

Dynamic X Axis based on date slicer

I have a stacked column chart where the x axis is a list of dates. I also have a slicer for that same value that filters the other visuals based on that date. Is there a way to set the x axis of the stacked column chart to show only dates on or before the selected date of the slicer? I figure I could create a measure that filters for all values on or before the selcted value but I'm not able to use a measure as an x axis.

2 REPLIES 2
mwmchugh215
Frequent Visitor

@amitchandak thank you for the response. The only problem I am having in implementing this solution is I have two date fields in my table and the independent date table has an active relationship with the other date field that is used as a slicer for other visuals in the report. Is there a solution where both date fields can be active, a second independent date table or something else?

amitchandak
Super User
Super User

@mwmchugh215 , for that the slicer needs to be on an independent date table

 


//Date1 is independent Date table, Date is joined with Table
new measure =
var _max = maxx(allselected(Date1),Date1[Date])
return
calculate( sum(Table[Value]), filter('Date', 'Date'[Date] <=_max))

 

 

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.