cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JordanJackson
Super User
Super User

Needing help with Countrows Measure

I am needing help with a COUNTROWs measure thats looking at counting rows where that contract falls out of target. Measure as follows:

Count CE % Difference > 90 =
CALCULATE (
    COUNTROWS ( KPI_Data ),
    FILTER (
        KPI_Data,
        [CE % Differance] > 90
    )
)
 
'[CE % Differance]' is a seperate measure which is a % difference value which is as follows:
CE % Differance =
SUM(KPI_Data[CE Agreed]) / SUM(KPI_Data[CE taken ])

I'm not getting the expected result when using the COUNTROWs measure, I believe this may be due to the reliance on the second measure in the calculation.

Any help with this would be greatly appreciated. 
 
 
1 ACCEPTED SOLUTION
Ahmedx
Solution Sage
Solution Sage

pls try this

 

Count CE % Difference > 90 =
CALCULATE (
    COUNTROWS ( KPI_Data ),
    FILTER (ALL(
        KPI_Data),
        [CE % Differance] > 0.9
    )
)

 

View solution in original post

2 REPLIES 2
Ahmedx
Solution Sage
Solution Sage

pls try this

 

Count CE % Difference > 90 =
CALCULATE (
    COUNTROWS ( KPI_Data ),
    FILTER (ALL(
        KPI_Data),
        [CE % Differance] > 0.9
    )
)

 

Thankyou, sometimes the solution is right in front of you lol

Helpful resources

Announcements
Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors