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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
CarlsBerg999
Helper V
Helper V

Modeling issue - TREATAS & Inactive relationships

Hi,

 

I have a data modeling issue that i can't seem to resolve. The data model is described below. What I need to do, is use the report filter to filter the results in the Matrix table.

 

CarlsBerg999_1-1634011978015.png

 

 

The issue is rather simple: The filter is not working for attributes because there is no active relationship. I cannot activate a connection between Filter Table and Attributes table, because it would cause ambiguity. The usual resolution would be USERELATIONSHIP, but it doesnt seem to resolve the issue in my measure.

 

Twist: I need to use "TREATAS" in the table due to complexity of the entire model. 

 

The current measure i have is: 

 

CALCULATE(SUM('Fact Table'[Value]),
TREATAS(VALUES('Categories'[Categories]),'Fact Table'[Categories]),
'Fact Table'[Product ID]IN{"20002"})

 

--> This does not produce results in the matrix table. It does work, if i switch on the relationship from the attributes to filter.

 

Any ideas on how to make this work? Note, i absolutely must use TREATAS for the categorization.  

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@CarlsBerg999 

Add a relationship from Categories Table to the Fact Table. 

Vpazhenmsft_0-1634193783425.png

 

And try use the following measure with TREATAS ():

Measure = CALCULATE(SUM('Fact Table'[Value]),
TREATAS(VALUES('Filter Table'[Filter]),'Attributes'[Filter]),
'Fact Table'[Product ID]IN{"20002"})
 
 
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

@CarlsBerg999 

Add a relationship from Categories Table to the Fact Table. 

Vpazhenmsft_0-1634193783425.png

 

And try use the following measure with TREATAS ():

Measure = CALCULATE(SUM('Fact Table'[Value]),
TREATAS(VALUES('Filter Table'[Filter]),'Attributes'[Filter]),
'Fact Table'[Product ID]IN{"20002"})
 
 
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.