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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Milozebre
Helper V
Helper V

Filter measure with mutiple table

Hello,

 

I created a measure with a filter on a table.

However, I would like to add another filter from another table.

Here is my measurement and I would like to add another filter in the measurement.

 

CALCULATE(DISTINCTCOUNT('Dossiers Traités/Equipe'[NumeroDossier]);FILTER('Dossiers Traités/Equipe';'Dossiers Traités/Equipe'[EquTRAIT] = "Voiture"  || 'Dossiers Traités/Equipe'[EquTrait] = "Moto" || 'Dossiers Traités/Equipe'[EquTrait] = "Velo" || 'Dossiers Traités/Equipe'[EquTrait] = "Bateau"))

 

I want add this filter : 

Filter('Dossiers Clos'; 'Dossiers Clos'[Libelle] = "Voiture"

 

I tried, related table, if, ... But I still have errors in the formulas

why add a filter to this extent and not a simple filter on the visualization ? The reason is simple, thaks to these measures, I will be able to make other calculations.

 

Thank you

 

1 ACCEPTED SOLUTION
dedelman_clng
Community Champion
Community Champion

CALCULATE can use implict filters

 

CALCULATE( Expression, [Filter 1]; [Filter 2]; ... )

 

So remove the explicit FILTER function:

 

MeasureName =
CALCULATE (
    DISTINCTCOUNT ( 'Dossiers Traités-Equipe'[NumeroDossier] ),
    OR (
        'Dossiers Traités-Equipe'[EquTRAIT] = "Voiture",
        OR (
            'Dossiers Traités-Equipe'[EquTrait] = "Moto",
            OR (
                'Dossiers Traités-Equipe'[EquTrait] = "Velo",
                'Dossiers Traités-Equipe'[EquTrait] = "Bateau"
            )
        )
    )
)

 

And you can add the new filter as another parameter (each parameter acts with an implicit AND)

 

MeasureName =
CALCULATE (
    DISTINCTCOUNT ( 'Dossiers Traités/Equipe'[NumeroDossier] );
    OR (
        'Dossiers Traités/Equipe'[EquTRAIT] = "Voiture";
        OR (
            'Dossiers Traités/Equipe'[EquTrait] = "Moto";
            OR (
                'Dossiers Traités/Equipe'[EquTrait] = "Velo";
                'Dossiers Traités/Equipe'[EquTrait] = "Bateau"
            )
        )
    );
  'Dossiers Clos'[Libelle] = "Voiture")

 

Hope this helps

David

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

Can you post some sample data so that this issue can be recreated?

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
dedelman_clng
Community Champion
Community Champion

CALCULATE can use implict filters

 

CALCULATE( Expression, [Filter 1]; [Filter 2]; ... )

 

So remove the explicit FILTER function:

 

MeasureName =
CALCULATE (
    DISTINCTCOUNT ( 'Dossiers Traités-Equipe'[NumeroDossier] ),
    OR (
        'Dossiers Traités-Equipe'[EquTRAIT] = "Voiture",
        OR (
            'Dossiers Traités-Equipe'[EquTrait] = "Moto",
            OR (
                'Dossiers Traités-Equipe'[EquTrait] = "Velo",
                'Dossiers Traités-Equipe'[EquTrait] = "Bateau"
            )
        )
    )
)

 

And you can add the new filter as another parameter (each parameter acts with an implicit AND)

 

MeasureName =
CALCULATE (
    DISTINCTCOUNT ( 'Dossiers Traités/Equipe'[NumeroDossier] );
    OR (
        'Dossiers Traités/Equipe'[EquTRAIT] = "Voiture";
        OR (
            'Dossiers Traités/Equipe'[EquTrait] = "Moto";
            OR (
                'Dossiers Traités/Equipe'[EquTrait] = "Velo";
                'Dossiers Traités/Equipe'[EquTrait] = "Bateau"
            )
        )
    );
  'Dossiers Clos'[Libelle] = "Voiture")

 

Hope this helps

David

Sorry for the late response but with jet lag ... 🙂

Hello,

 

I just tested the formula it works.

I didn't know that we didn'tt have to filter with Calculate.

 

Thanks for the information and the solution.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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