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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors