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
alec20191104
Frequent Visitor

still getting filtered despite ALL

the measure below isn't behaving as expected. The agreement table connects to the snapshot with filters in both directions and then the onBook table connects to the snapshot with single direction filters.

 

If I set the filter direction on the agreement-snapshot link to single the measure behaves as expected but a lot of other things break. I don't understand why the ALL(OnBook) is letting the measure return different values based on fields in the OnBook table.

 

# Agreements = DISTINCTCOUNT(Agreement[PKAgreement])

# Agreements All MoBs = 
CALCULATE(
    [# Agreements]
    ,ALL(OnBook)
)

 

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @alec20191104 ,

 

Based on your description, the two measures are based on different tables. However, the actual situation is based on the Agreement table, and the all function does not take effect.

If the problem persists,could you share the sample pbix via cloud service like onedrive for business?

Please remove any sensitive data before uploading.

 

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

d_gosbell
Super User
Super User

There is probably a logical explanation for the behaviour you are seeing, but without being able to see an example dataset that shows the issue you are seeing it's pretty hard to say what this might be.

 

However since you've identified that changing the relationship to a single direction fixes this particular measure there may be a solution to your issue. And that is to use the CROSSFILTER function to change the behaviour of the relationship for this one measure only.

 

eg.

 

# Agreements All MoBs = 
CALCULATE(
    [# Agreements]
    ,ALL(OnBook)
    , CROSSFILTER( <many-side-column>, <one-side-column> , one)
)

 

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.