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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Inactivate relationship dax

Hi, 

 

I would like to inactivate a existing relationship for a measure with dax.
I have tried crossfilter and then set it to NONE but i does not seems to work, or even All to ignore the filter.

 

I need the relationship to be activ for other calculation.

 

 

1 ACCEPTED SOLUTION
MartynRamsden
Solution Sage
Solution Sage

Hi @Anonymous 

 

Try wrapping your exisiting code in an outer CALCULATE with the CROSSFILTER modifier.

E.g.

Measure =
CALCULATE (
    ***Original Expression Here***,
    CROSSFILTER ( Table1[ID], Table2[ID], NONE )
)

 

This will ensure that your measure is calculated as if the relationship wasn't there.


Best regards,

Martyn

 

If I answered your question, please help others by accepting it as a solution.

View solution in original post

1 REPLY 1
MartynRamsden
Solution Sage
Solution Sage

Hi @Anonymous 

 

Try wrapping your exisiting code in an outer CALCULATE with the CROSSFILTER modifier.

E.g.

Measure =
CALCULATE (
    ***Original Expression Here***,
    CROSSFILTER ( Table1[ID], Table2[ID], NONE )
)

 

This will ensure that your measure is calculated as if the relationship wasn't there.


Best regards,

Martyn

 

If I answered your question, please help others by accepting it as a solution.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.