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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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