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
Anonymous
Not applicable

count of summarize

Question:
The TableMain at the bottom returns a table with data correctly.

VAR TableMain =
FILTER (
SUMMARIZE (
Table1,
Table1[Field1],
Table2[Field1],
Table1[Field2],
"Count", DISTINCTCOUNT ( Table3[Field2] ),
"Total Sales", [MyMeasure]
),
[Total Sales] > 10
)

Question:
How do I do a sum (In a separate measure) for the column "Count" in table TableMain ?

The following count dax does not work:
CALCULATE(SUM(Mandates[Count]))

Thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thank you


@Zubair_Muhammad wrote:

@Anonymous 

 

You will have to use an iterator like SUMX to aggregate

Something like this

 

SUMX(TableMain,[Count])



@Zubair_Muhammad wrote:

@Anonymous 

 

You will have to use an iterator like SUMX to aggregate

Something like this

 

SUMX(TableMain,[Count])


 

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@Anonymous 

 

You will have to use an iterator like SUMX to aggregate

Something like this

 

SUMX(TableMain,[Count])


Regards
Zubair

Please try my custom visuals
Anonymous
Not applicable

Thank you


@Zubair_Muhammad wrote:

@Anonymous 

 

You will have to use an iterator like SUMX to aggregate

Something like this

 

SUMX(TableMain,[Count])



@Zubair_Muhammad wrote:

@Anonymous 

 

You will have to use an iterator like SUMX to aggregate

Something like this

 

SUMX(TableMain,[Count])


 

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