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
azakir
Resolver I
Resolver I

Count Measure

Hi Guys. 

Trying to get the total count of a measure. I have a measure that calculates the count of equipments if the acheived is higher than target. In the example below, for Dozers should be 4 instead of 5. Similiarly Truck should be 9 instead of 12. And Excavator total should be 1 instead of blank. Can I please ask for some help on this.

 

azakir_0-1690268628016.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@azakir , You need to have measure like

 

Countrows(filter(Summarize(Table, Table[Equipmement Class],Table[Equipmement Code], "_1", if([M1] > [M2]+0 ,1, 0) ), [_1] >0 ) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@azakir , You need to have measure like

 

Countrows(filter(Summarize(Table, Table[Equipmement Class],Table[Equipmement Code], "_1", if([M1] > [M2]+0 ,1, 0) ), [_1] >0 ) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks @amitchandak . Had to redo the measure with some modifications, but it worked: 

Thanks @amitchandak but that didn't work. Is the measure correct ?

Helpful resources

Announcements
Fabric Data Days is here Carousel

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.