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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
RJ_KON
Helper I
Helper I

Matrix table showing wrong grand total values

Hi, I am struggling to fix this problem in correcting my matrix table grand total values. Below is the DAX measure I am using and it is linked using three tables.
 
Variableincome = sumx(VALUES('Sales Income Node '[Income Group Node 6]),
                    CALCULATE(SUM('IRG Cre Data'[Sales Income])*('IRG Cre Data'[Scaling Factor]),
'CS Income Node '[Income Group Node 6] IN{ "Cheque","Deposits"}))
 
Please help
Regards
Ron
1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @RJ_KON ,

 

It is difficult to determine the context of the measure without example data. Perhaps you could try the generic formula for calculating the total value.

 

SumSales =
CALCULATE (
    SUM ( 'IRG Cre Data'[Sales Income] ) * ( 'IRG Cre Data'[Scaling Factor] ),
    'CS Income Node '[Income Group Node 6] IN { "Cheque", "Deposits" }
)
TotalSales =
IF (
    ISFILTERED ( 'Sales Income Node '[Income Group Node 6] ),
    [SumSales],
    SUMX ( ALLSELECTED ( 'Sales Income Node '[Income Group Node 6] ), [SumSales] )
)

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-kkf-msft
Community Support
Community Support

Hi @RJ_KON ,

 

It is difficult to determine the context of the measure without example data. Perhaps you could try the generic formula for calculating the total value.

 

SumSales =
CALCULATE (
    SUM ( 'IRG Cre Data'[Sales Income] ) * ( 'IRG Cre Data'[Scaling Factor] ),
    'CS Income Node '[Income Group Node 6] IN { "Cheque", "Deposits" }
)
TotalSales =
IF (
    ISFILTERED ( 'Sales Income Node '[Income Group Node 6] ),
    [SumSales],
    SUMX ( ALLSELECTED ( 'Sales Income Node '[Income Group Node 6] ), [SumSales] )
)

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@RJ_KON , hope the visual is displayed only at level [Income Group Node 6]

 

if not use summarize and add more columns. Column (not summarized in visual)

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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