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
moralesm7
New Member

Countifs/ count number of times a value appears conditional to another value

Hello all,

 

I've searched the forum, and although there are similar questions, I could not find a solution that worked.

I have 2 columns, one has a set of IDs that are not necessarily unique, the other one has 2 values: ready or Not ready).

I need to count the times Ready shows per value in the first column. My Sample is from excel, just to get an idea of my data:

moralesm7_1-1616278054882.png

Formulas that I've tried have given me the total amount of times each appears, but i need the total in relation to the ID..

 

Thanks!

COUNTIFS in Power BI 

1 REPLY 1
SmithT
Frequent Visitor

Hi There,

I am not sure if I understood correctly, you want to see

ID 14 with Count 2 (for Ready Now) right?

I have rebuild this, with a example table (different values tho)

SmithT_0-1616327175400.png



To Calculate the Rows i have used a measure

Ready Now =
CALCULATE (
COUNTROWS ( 'Ready or Not' ),
'Ready or Not'[Readiness] = "Ready Now"
)

It calculates how many rows it should count, with "Readiness" set to "Ready Now", if you want to count something else, you should put a different Filter in ""

🙂

Have a great day











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.