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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Milozebre
Helper V
Helper V

CountRows with filters

Good afternoon, 

 

I have a table that includes records with a number of actions.
To know the number of files, I choose the number distincitfs.
I create a measure and use the Countrows command : COUNTROWS(distinct('Dossiers Traités/Equipe'[NumeroDossier]))
It works, I have the right number.
Now I would like to add filters of this type: Filter('Dossiers Traités/Equipe' [EquTrait] = "Voture"  || 'Dossiers Traités/Equipe'[EquTrait] = "Moto"

But he tells me that there is only one argument. Can you tell me where I am wrong?

Thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Try:

Measure = CALCULATE(DISTINCTCOUNT('Dossiers Traités/Equipe'[NumeroDossier]),FILTER('Dossiers Traités/Equipe',

'Dossiers Traités/Equipe' [EquTrait] = "Voture"  || 'Dossiers Traités/Equipe'[EquTrait] = "Moto"))

View solution in original post

3 REPLIES 3
Ramadevi
Frequent Visitor

Hi,

 

Try this once. Hope this helps.

 

MeasureTest = COUNTROWS(DISTINCT(FILTER('Dossiers Traités/Equipe','Dossiers Traités/Equipe' [EquTrait] = "Voture"  || 'Dossiers Traités/Equipe'[EquTrait] = "Moto")))

Anonymous
Not applicable

Try:

Measure = CALCULATE(DISTINCTCOUNT('Dossiers Traités/Equipe'[NumeroDossier]),FILTER('Dossiers Traités/Equipe',

'Dossiers Traités/Equipe' [EquTrait] = "Voture"  || 'Dossiers Traités/Equipe'[EquTrait] = "Moto"))

Hello, 

 

In as short a time.
Unbelievable 🙂

I feel a little silly 🙂
 
thank you very much.
 
Have a nice day 
 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors