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
Tatibella
Frequent Visitor

count of numbers in a matrix

Hi,

 

I have a measure (Measure 5) which I put in a matriz. It gives me numbers of 0 and 1s.

Measure 5 = IF('Results'[Measure 5 Blanks]=2, 1,0)

Now what I need is to count or sum only the 1. In this case I should have 8 instead of 0.

Tatibella_0-1680269400968.png

Thanks for advising me

 

2 REPLIES 2
ahmedoye
Resolver III
Resolver III

Depending on which category of data you are reporting the numbers by in your Report Table, try the approach below. If it works for you, please mark as solution so anyone with similar issue can easily find it.

SUMX(ALL(DataTable[DataColumn]), [Measure 5])

DOLEARY85
Super User
Super User

It should work if you create it as a calculated column instead of a measure

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.