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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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