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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors