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