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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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
Top Kudoed Authors