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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.