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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
francomaestri
Frequent Visitor

Dynamic X Axis constant according a filter

Greeting everyone!

 

I have problems with the constant values of the X axis. I have a range filter, but when I use it, I need the constant values outside the range to disappear. Is there an easy way to implement it? I have tried with an measure and an IF, but I could not make it work. Another option, more manual, that I thought was to create a verification box and select which constant lines show. Again, without results. Any ideas?


Thanks!

 

francomaestri_0-1656089834465.png

 

2 REPLIES 2
amitchandak
Super User
Super User

@francomaestri , I created 2 Line and used them on x-axis constant line and they respond to the slicer

 

l1 = MINX(ALLSELECTED('Date') , 'Date'[Year])

l2 = MINX(ALLSELECTED('Date') , 'Date'[Year])+1

 

amitchandak_0-1656144783583.png

 

 

amitchandak_1-1656144803767.png

 

 

 

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

Hey, thanks! That's really usefull. Nevertheless, what I needed was to have fixed values for de constant lines. I.E., always on the same years, but to make them disapear when the corresponding year is not in the range of the filter. Any ideas for that?

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

October NL Carousel

Fabric Community Update - October 2024

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