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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.