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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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