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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
da_heff
New Member

Y axis calculation

Hi,

In the day version of my dashboard, use a custom measure statement to increase the size of the y axis by a factor of 1.4 to allow for the display of a % compliance line above my clustered columns.

 

= max(MAXX(KEEPFILTERS(VALUES('MQY'[date])), calculate(
MAX(SUM('MQY'[ent]),SUM('MQY'[forecast_iv]))
,KEEPFILTERS('MQY'[forecast_iv])
)),MAXX(KEEPFILTERS(VALUES('MQY'[date])), calculate(
MAX(SUM('MQY'[ent]),SUM('MQY'[forecast_iv]))
,KEEPFILTERS('MQY'[ent])
))) *1.4

 

Now, I need to add another page to my report to show the results by month, quarter and year.

 

How do I modify my statement above to sum the months figures so I can add the 1.4 factor?

 

Thanks in advance....

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @da_heff,

You can try to use the following measure formula if helps:

formula =
CALCULATE (
    MAX (
        CALCULATE (
            MAX ( SUM ( 'MQY'[ent] ), SUM ( 'MQY'[forecast_iv] ) ),
            VALUES ( 'MQY'[forecast_iv] )
        ),
        CALCULATE (
            MAX ( SUM ( 'MQY'[ent] ), SUM ( 'MQY'[forecast_iv] ) ),
            VALUES ( 'MQY'[ent] )
        )
    ),
    VALUES ( 'MQY'[date] )
) * 1.4

If the above also doesn't help, can you please share a pbix or some dummy data that keep raw data structure with expected results? They will help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @da_heff,

You can try to use the following measure formula if helps:

formula =
CALCULATE (
    MAX (
        CALCULATE (
            MAX ( SUM ( 'MQY'[ent] ), SUM ( 'MQY'[forecast_iv] ) ),
            VALUES ( 'MQY'[forecast_iv] )
        ),
        CALCULATE (
            MAX ( SUM ( 'MQY'[ent] ), SUM ( 'MQY'[forecast_iv] ) ),
            VALUES ( 'MQY'[ent] )
        )
    ),
    VALUES ( 'MQY'[date] )
) * 1.4

If the above also doesn't help, can you please share a pbix or some dummy data that keep raw data structure with expected results? They will help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

@da_heff , Not very clear. But the max should be

 

calculate([measure], allselected()) * 1.4

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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