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
ae19bu
Frequent Visitor

Aggregated Total using a Distinct Totals

Hello PBI Community, 

I need help to figure out how I can calculate a Aggregated Total using Distinct Totals.  Specifically , the Denominator to calculate a Percent of total. Unfortunately , my table has duplicates so I tried the following:


VAR Asum=

SUMX(
SUMMARIZE(
VALUES(Table1[AcctNum])
,Table1[AcctNum]
,"ABCD"
,MIN(Table1[Amount])
) ,[ABCD] )

RETURN
SUMX(ALL(Table1[Column1]), Asum )

1 ACCEPTED SOLUTION
ae19bu
Frequent Visitor

I figured it out. Here is the formula that worked for me. 

 

VAR Asum=

SUMX(
SUMMARIZE(
VALUES(Table1[AcctNum])
,Table1[AcctNum]
,"ABCD"
,MIN(Table1[Amount])
) ,[ABCD] )

RETURN
CALCULATE(Asum, ALL(Table1(Column1))

View solution in original post

1 REPLY 1
ae19bu
Frequent Visitor

I figured it out. Here is the formula that worked for me. 

 

VAR Asum=

SUMX(
SUMMARIZE(
VALUES(Table1[AcctNum])
,Table1[AcctNum]
,"ABCD"
,MIN(Table1[Amount])
) ,[ABCD] )

RETURN
CALCULATE(Asum, ALL(Table1(Column1))

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.