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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Sum the count results of a measure

Hello,

 

I have a calculated measure that counts how many people were below target comparing the results from Tbale 1, vs the targets from Table 2. There are other filters applied (3 specifically, Month, year and Type) that show me the results depending on what I select.

 

However, I need to calculate the total sum of that count depending on the filters.

 

The formula used to determine the count is:

calculate(distinctcount('Table 1'[Name ID)]),filter('Table 1','Table 1'[Units]<AVERAGE(Table2[Targets])),filter('DOR Data',not(isblank('Table 1'[Units]))))

 

The results of the counts for the filters selected are 4 numbers: 39, 21, 52, 40

 

I want to obtain the total sum of those five numbers (should be 152 (like a constant that changes depending only on the filters)) as an independent measure.

 

How can I do that?

 

Thank you for your support.

1 REPLY 1
SivaMani
Resident Rockstar
Resident Rockstar

@Anonymous,

 

Create a new measure with SUMX -  SUMX(<tablename>,<count measure>)

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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