cancel
Showing results for
Did you mean:

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Helper I

Help needed on Y axis

Hi all,

I have a visual with the possibillity to switch between absolute numbers and percentages (up to 100%).
The only problem I have is that sometimes the Y-axis shows 200%, so the bars only fill half.
That's why I want to construct a measure to put in the Y-axis max.
But I am stuck on the formula for the absolute numbers.
See below my example, I have a  stacked bar with months on the X-axis and legend on status, but I need a formula to calculate the max total per month, so in this case 450 (month 202203):

monthstatuscountTotal per month
202201A50

202201B100200
202201C50
202202A100

202202B75250
202202C75
202203A150
202203B200450
202203C100
202204A100
202204B100300
202204C100

Sander

1 ACCEPTED SOLUTION
Super User

Hi  @Sander1401 ,

Try something similar to:

``MAX value = CALCULATE (MAX(Table[Column]), ALLSELECTED(Table[Month]))``

Regards

Miguel Félix

Proud to be a Super User!

Check out my blog: Power BI em Português

3 REPLIES 3
Super User

Hi  @Sander1401 ,

Try something similar to:

``MAX value = CALCULATE (MAX(Table[Column]), ALLSELECTED(Table[Month]))``

Regards

Miguel Félix

Proud to be a Super User!

Check out my blog: Power BI em Português

Helper I

Hi MFelix,

`MAX value = CALCULATE (MAX(Table[Column]), ALLSELECTED(Table[Month]))`
Super User

The column that you want to use has maximum value

Regards

Miguel Félix

Proud to be a Super User!

Check out my blog: Power BI em Português

Announcements

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

Power BI Monthly Update - April 2024

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

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors