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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Responsive Resident
Responsive Resident

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
Resident Rockstar
Resident Rockstar

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.