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
GeekAlfPro
Resolver II
Resolver II

Strange Result of a measure

Hello,

 

i'm facing a strange result of a measure

I want to calculate the disponibility of a vehicle.

For that i code the following measure

Disponibilité véhicule = 
CALCULATE(
    COUNT('Disponibilité'[Dispo Qualifiée]),
    FILTER('Disponibilité', 'Disponibilité'[Dispo Qualifiée] = "Exploitation"))

But the result is strange, because it displays 45, 

 

GeekAlfPro_1-1648629611573.png

 

despiste i only have 22 days with the filters...

 

GeekAlfPro_0-1648629438563.png

 

2 REPLIES 2
GeekAlfPro
Resolver II
Resolver II

Hello @Aditya_Meshram ,

 

yes with the same result.

i noticed another oddity.

i have 2 segments

one with a range of dates, the other with the months

GeekAlfPro_0-1648632805778.png

the measure is OK when i select the date AND the month, but not if i only select the range of dates

 

Aditya_Meshram
Solution Supplier
Solution Supplier

Hi @GeekAlfPro 
have you tried COUNTROWS() instead of COUNT()?

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.

Top Solution Authors