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
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
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.

Top Solution Authors