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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Measure seems to ignore relationship

Hi Guys,

 

I could not find anything like this via the search, if I missed something please exuse it.

 

I am not sure if I understand relationships correctly regarding measures. So I have a little demo data model which contains some Users / Names and a dimension table with Cities they live in:

SvenG_0-1614072639115.png

e.g. SvenG_2-1614072735613.png

 

FK stands for Foreign Key and contains the IDs for the cities.

So if I display each name with its respective City it works just fine:

SvenG_1-1614072707165.png

But what I cannot understand is that, if I add a text measure, e.g. 

SvenG_3-1614072796331.png

The table visual seems to ignore that relationship entirely:

SvenG_4-1614072844181.png

 

Why is that? I tested it in my original report with some measures using SUM, etc, which works. But for Unicode chars or text it seems to fail.

Am I missing something here? I also tried to wrap it into a CALCULATE for the context transition, but that didn't work either.

 

I'd be glad if someone could shed a little light here for me.

 

Thank you, Sven

1 ACCEPTED SOLUTION
CNENFRNL
Community Champion
Community Champion

@Anonymous , I think it's all about some profound mechanism in data model, namely auto-exist and filter propagation. You might want to google those keywords by yourself.

As to your issue here, a solution is

 

 

Circle = IF ( NOT ISEMPTY ( PEOPLE ), UNICHAR ( 11044 ) )

 

Screenshot 2021-02-23 111257.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

3 REPLIES 3
CNENFRNL
Community Champion
Community Champion

@Anonymous , I think it's all about some profound mechanism in data model, namely auto-exist and filter propagation. You might want to google those keywords by yourself.

As to your issue here, a solution is

 

 

Circle = IF ( NOT ISEMPTY ( PEOPLE ), UNICHAR ( 11044 ) )

 

Screenshot 2021-02-23 111257.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Anonymous
Not applicable

Thank you very much. If I understand it correctly auto-exist causes a cross-join here because we filter two different tables and the measure does not result into BLANK() for the non-existing combinations. But I am not sure where filter propagation comes into play.

 

And your solution uses the fact that we consider the expanded table for people there, am I right?

amitchandak
Super User
Super User

@Anonymous , Try like

maxx(people, unichar(11044)) //people table

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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