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

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

Reply
Anonymous
Not applicable

Create a measure witout filters

Hi everybody, 

I'm wondering if it's possible to create a measure without the filters which are in the rapport. 
Better explanations : 
My tables are filtering by a year table, in my case is 2021. So my measures are filtered to. 

But I would like to remove this filter and put a new one only in the new measure.

I tried this :


test =
CALCULATE (
COUNT ( 'Utilisation des offres'[Clé primaire NIA + Annéee + ID Offre] ),
FILTER ( Offre_ID, Offre_ID[ID_Offre] = 8 ),
FILTER ( Type_OD, Type_OD[ID_typeOD] = "1" ),
ALL( 'Utilisation des offres'[ID_annee] ),
FILTER( 'Utilisation des offres', 'Utilisation des offres'[ID_annee] = [Id_Année_mesure] )
) / [NB_actifs_filtres]

"Id_année mesure" correspond to the year 2022.

The result is "ampty"

Thank in advance for your help

 

 

1 REPLY 1
Anonymous
Not applicable

Hi  @Anonymous ,

 

You can try using ALLSELECTED() instead of ALL()

The ALLSELECTED function removes context filters from columns and rows in the current query, while retaining all other context filters or explicit filters.

ALLSELECTED function (DAX) - DAX | Microsoft Learn

test =
CALCULATE (
COUNT ( 'Utilisation des offres'[Clé primaire NIA + Annéee + ID Offre] ),
FILTER ( Offre_ID, Offre_ID[ID_Offre] = 8 ),
FILTER ( Type_OD, Type_OD[ID_typeOD] = "1" ),
ALLSELECTED( 'Utilisation des offres'[ID_annee] )
) / [NB_actifs_filtres]

If I have misunderstood your meaning, please provide your pbix file without privacy information and desired output.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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