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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
GeekAlfPro
Helper V
Helper V

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
Helper V
Helper V

Hello @Anonymous ,

 

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

 

Anonymous
Not applicable

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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