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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
kolima97
Regular Visitor

Power BI Measure without relationship between tables

Hi,

 

I have a problem with a measure I found in a customer's report because it works but I don't understand how. Basically we have two tables, one fact table and one dimension table, the measure performs a count of the rows of the fact table under some specific filters. The problem is it uses a column of the dimension table in order to filter, but there is no active relationship between these two tables and it is not specified inside the DAX formula. There is an inactive relationship between these two tables but it a many to many relationship with no real usage. I don't understand how the results that the measure gives are correct and actually filtered without an explicit nor implicit relationship. 

Thank you in advance 

4 REPLIES 4
Uspace87
Resolver III
Resolver III

@kolima97 

 

Probably they are using the formulan "USERELATIONSHIP" that allow you o activate a unactive relationship just for the dax formula calculation

No, they are not. There is only a FILTER function inside the CALCULATE.

if the relationship is not active it's not gonna filter anything. Maybe they are using "TREAT AS"?

No they are not. It's very strange to me and I can't figure out how it is working. 

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

Top Solution Authors