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 September 15. Request your voucher.

Reply
Yashh
Helper II
Helper II

Subtotal of row in matrix table wrong

Yashh_0-1690447400299.png


in this table the total is not showing correct.
Please help

5 REPLIES 5
Anonymous
Not applicable

Hi @Yashh ,

 

The problem of incorrect totals and subtotals in DAX is a common problem for Power BI users. Please refer to the below blog to learn about how to fix it:

Learn How to Fix Totals and Subtotals in DAX (theexcelclub.com)

 

                                                                                                                                                         

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

Yashh
Helper II
Helper II

Hello @DataVitalizer 
Yashh_0-1690463782877.png

 

 

Hello all the total here is not correct 
This is the formula which i am using:

Total Count =
VAR FilteredData =
    FILTER(
        'MD4C-Multi',
        'MD4C-Multi'[MRPConfirmed] IN {"Stock","material-in time","material-too late","Purchase Requisition","No Order Conformation"}
    )
RETURN
    COUNTROWS(
        SUMMARIZE(
            FilteredData,
            'MD4C-Multi'[Material]
        )
    )
Please help me to correct it.
Best regards

Hi @Yashh 

Try replacing the filter context as below

...VAR FilteredData =
    FILTER(
        ALL('MD4C-Multi'),
        'MD4C-Multi'[M...

 

Did it work 👍 A kudos would be appreciated ‌‌📢 Mark it as a solution to help spreading knowledge

Try replacing the returned value by 
RETURN
DISTINCTCOUNT(FilteredData[Material])

Did it work ?  ‌‌ Mark it as a solution to help spreading knowledge
Was this exchange helpful? A kudos 👍 would be appreciated

 

DataVitalizer
Solution Sage
Solution Sage

Hi @Yashh 

Are you displaying values from a measure? if so, please share the used fomula.


Did it work ?  ‌‌ Mark it as a solution to help spreading knowledge
Was this exchange helpful? A kudos 👍 would be appreciated

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.