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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
avi081265
Helper III
Helper III

Not able to do Sum multiple measures

Hello All,

I created 3 measures as mentioned below

1.  MissingSchemedesign = If(calculate(count(Merge1[Id]),Merge1[Items.Level-2]="Scheme design")=0,1,0)

2.  MissingDrawings = If(calculate (count(Merge1[Id]),Merge1[Items.Level-2]="Drawings")=0,1,0)

3.  MissingRisk = If(calculate(count(Merge1[Id]),Merge1[Items.Level-2]="Risk")=0,1,0)
 
I am able to display above 3 measures value in table for each items as mentioned below
avi081265_0-1678537482751.png

Now I want to display sum of the count seprately, not in this table, so I create formula as mentioned below, but it always display One (1)

TotalCount = [MissingSchemedesign]+[MissingDrawings]+[MissingRisk]
It should show Nine (9) not One (1)
 
Please let me know what wrong I am doing.
 
Regards
Avian
1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

try writing like this

TotalCount =
      SUMX(
           VALUES('table'[Machine No]),
         [MissingSchemedesign]+[MissingDrawings]+[MissingRisk])

 

View solution in original post

4 REPLIES 4
Ahmedx
Super User
Super User

Screen Capture #520.pngScreen Capture #521.pngScreen Capture #523.pngScreen Capture #524.png

Thanks It is working

 

However column headers are displaying empty.

 

I also dont want to display those measures where is count is zero.

avi081265
Helper III
Helper III

Thanks Ahmedx, it works.

 

One more question,  I want to display data in following format using measure field. I tried in Table and Matrix, but no luck. Any other format I am missing

MissingCount
Missingschemedesign1
Missing Drawing0
Missing Risk1
Total2

 

 

Ahmedx
Super User
Super User

try writing like this

TotalCount =
      SUMX(
           VALUES('table'[Machine No]),
         [MissingSchemedesign]+[MissingDrawings]+[MissingRisk])

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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