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
JordanJackson
Advocate II
Advocate II

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
Super User
Super User

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
Super User
Super User

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
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.