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
MinhPham0710
Regular Visitor

[PowerBi] How to get grand total in cluster column

I've tried two ways, it works if there is only one data table but when it comes to 2. Please help me: 

First way:

Total by Sales =
var SalesTotal =
sum('Sell out'[Tiền])
RETURN
if(isblank(SalesTotal),CALCULATE(sum('Sell out'[Tiền]),allexcept('Sell out','Sell out'[Năm out],'Sell out'[Tháng out])),SalesTotal)
 
Second: 
Measure = if(SELECTEDVALUE('Table'[Sales total])="Total",CALCULATE(sum('Sell out'[Tiền]),ALLEXCEPT('Sell out','Sell out'[Năm out],'Sell out'[Tháng out])),sum('Sell out'[Tiền]))
 
This is our data table:
MinhPham0710_0-1719981067323.pngMinhPham0710_1-1719981093234.png

 

2 REPLIES 2
Anonymous
Not applicable

Hi @MinhPham0710 ,

 

Please provide a sample of the data and the expected results so that we can better solve the problem for you.

 

Best regards,
Community Support Team_ Scott Chang

MinhPham0710
Regular Visitor

pls help me

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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