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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
HitendraD
Regular Visitor

How to create Single Dax Measure for Max Values across Category (Multiple Dimension)

I have the following Data

Source Name# Total Journals% of Selected JournalsMax Value% of Max
Payables13,30239.40%13,302100%
Spreadsheet10,38530.80%13,30278%
Cost Accounting3,67010.90%13,30228%
Receivables3,0229.00%13,30223%
Receipt Accounting1,2613.70%13,3029%
Projects5141.50%13,3024%
Assets4601.40%13,3023%
Manual4511.30%13,3023%
AutoCopy3020.90%13,3022%
Cash Management1500.40%13,3021%
Revaluation1170.30%13,3021%
Tax870.30%13,3021%
Conversion50.00%13,3020%


To calculate Max Value, following Dax function is used.

MAXX (
        CALCULATETABLE (
            VALUES ( 'Fact-Journals'[Source Name]),
            ALLSELECTED ( 'Fact-Journals'[Source Name] )
        ),
        [# Total Journals]
    )


 I need to use this function for multiple dimensions other than source, it is resulting in high maintainence of Dax.
Also majorly this function is used for conditional formatting.

Is there a way, where instead of VALUES ( 'Fact-Journals'[Source Name]), dax functions can dynamically select the dimensions in row context.

1 REPLY 1
Hema_Gupta
Frequent Visitor

Hi ,

Hope this helps

 

Max Value Across Categories =
VAR SummaryTable =
    SUMMARIZE (
        'Fact-Journls',
       'Fact-Journls'[Source Name],
        'Fact-Journals'[Dimension1],
         'Fact-Journals'[Dimension2],
          ... //  You can Add more dimensions as needed
        "MaxValue",
        CALCULATE ( MAX ( 'Fact-Journls'[#Total Journals] ) )
    )
   
RETURN
    SUMX ( SummaryTable, [MaxValue] )

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors