cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sander1401
Helper I
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 

 

Thanks in advance,

Sander

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi  @Sander1401 ,

 

Try something similar to:

 

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

Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

3 REPLIES 3
MFelix
Super User
Super User

Hi  @Sander1401 ,

 

Try something similar to:

 

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

Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi MFelix,
thanks for your reply, but what column should I add in the formula?

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

The column that you want to use has maximum value


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.