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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
joshua1990
Post Prodigy
Post Prodigy

End of Y-Axes based on Measure

Hi!

I have a bar chart that shows me the value for a measure per week.

I would like to limit the End of the Y-Axes based on the MAX value within the full range of all weeks.

For instance, if the value for the latest week is 5.000 and week 20 = 10.000, then the Y-Axes should end at 10.000.

How would you do that using a measure within the Y-Axes settings?

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @joshua1990 ,

 

Try what the @Greg_Deckler  said. You could create a measure like below:

Measure = MAXX(VALUES(financials[Country]),CALCULATE(SUM(financials[Profit]),ALLEXCEPT(financials,financials[Country])))

In this formula, my x axis is financials[Country].

Vlianlmsft_0-1636696550839.png

 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Super User
Super User

@joshua1990 There should be a small fx button next to the Start and End values for Y-Axis in column charts and the X-Axis in bar charts. You could write a simple measure, MAX('Table'[Column]) to set the max or min value. 


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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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