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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
PetrM
Frequent Visitor

Measure for scaling Y-axis with Measure acc. to Currency

I have a measure for "+5%" scaling of Y-axis.

 

Measure_MaxY =
    MAXX(
        SUMMARIZE(FactTable, DimCalendar[Ultimo], "Max Measure", [Measure])
        , [Max Measure]
        ) * 1.05
 
I need to amend the measure so that it doesn't scale for total of Measure, but for a subtotal according to Currency dimension. (A line chart with Currency_Cluster in Legend).
 
The following somewhat works:
Measure_MaxY2 = MAXX(
                 SUMMARIZE(
                     FactTable,
                     DimCalendar[Ultimo],
                     "currency_cluster",
                     MAX('DimCurrency'[currency_cluster]),
                     "Max Measure",
                     [Measure]
                 ),
                 [Max Measure]
              ) * 1.05
 
meaning the syntax is not incorrect, but it seems to return higher value than what I expect, so sometimes the scaling looks "+5%" as expected, but perhaps most of the time, it is "+20%" or so. Any ideas where the problem might be? Thanks.
1 REPLY 1
lbendlin
Super User
Super User

use EVALUATEANDLOG  and DAX Debug Output to look into the MAXX array to see which values may be unexpected.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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