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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
jalaomar
Helper IV
Helper IV

Count rows based on filters

Hello,

 

Would like to count number of rows with the following conditions 

Duration >= 45 AND Percent Complete >= 1% where Tollgate Phase is Blank

 

Tried the following measure but doesn't seem to work (didn't add condition that tollgate phase should be blank)

#project with perc = CALCULATE(
COUNTROWS('Governance Dimesions'),
FILTER('Dimesions', 'Dimesions'[Schedule Duration] >= 45 || 'Dimesions'[Governance[PertentageCompletedActual]]] > 1 ))
 
anybody who knows how to manage?
 
2022-10-31_14-46-39.png
1 ACCEPTED SOLUTION
Bifinity_75
Solution Sage
Solution Sage

Hi @jalaomar , you can create a calculate column:

Bifinity_75_0-1667227568499.png

Column = if('Table'[Tollgate Phase]=blank() && 'Table'[Duration]>=45 && 'Table'[%]>=0.01,1,0)
 
The sum of this calculate column is the result,
 
Best regards
 
 

View solution in original post

1 REPLY 1
Bifinity_75
Solution Sage
Solution Sage

Hi @jalaomar , you can create a calculate column:

Bifinity_75_0-1667227568499.png

Column = if('Table'[Tollgate Phase]=blank() && 'Table'[Duration]>=45 && 'Table'[%]>=0.01,1,0)
 
The sum of this calculate column is the result,
 
Best regards
 
 

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 FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors