Reply
floo_o
Regular Visitor
Partially syndicated - Outbound

Using redundant relationships

Hello together,

in my problem, there are three tables with an redundant relationship. (You can see the problem in the attached picture)

The target is to assign the costs from Table1 to a causer in Table 3.

When the Bew.Art is 553, the causercode is V01.

When the Bew.Art is 551 and there isn´t a Order, the causercode is V15.

When the Bew.Art is 551 and there is a Order, it depens on which Workplace the order was edited. And then the Workplace decide about the causercode.

And because of the causercode in Table1 oder Table 3, I have to connect both to Table 3.

 

I know, the tables aren´t modeled in the best way, but that´s an requirement, not to change these tables.

 

My Question:
Is it possible to solve this problem without changing the Tables, maybe with a Dax-formula?
("USERELATIONSHIP" or something like that?)Unbenannt.PNG

2 REPLIES 2
floo_o
Regular Visitor

Syndicated - Outbound

Sorry for the misunderstanding question.

Thanks for your reply, but that isn´t my desired goal.

 

I took your File, filled it with some more informationen (e.g. costs and causer) and created the final table.

 

Here you can see, that 100€ aren´t assigned to any causer.
In Table1 you can see, that these 100€ don´t have a causercode, but a Order.
And in Table2 you can see, that these Order is assigned to workplace AW1 and to the causercode V08.
And in Table3 you can see, that causercode V08 is assigned to the causer "cause2".

So in the free field I want the causer "cause2"

I hope you understand my problem now.

 

I can´t upload a .pbix-file. so I have to send pictures.


Table1
Table1Table1
Table2
Table2Table2
Table3
Table3Table3
Relationship
RelationshipRelationship
Desired Goal
DesiredGoalDesiredGoal

v-yalanwu-msft
Community Support
Community Support

Syndicated - Outbound

Hi, @floo_o ;

You could try it.

Measure = 
IF(MAX('Table1'[causecode])<>BLANK(),MAX('Table1'[causecode]),MAX('Table2'[causecode]))

The final show:

vyalanwumsft_0-1670551958754.png

If not right, can you share the result what you want to output?


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

avatar user

Helpful resources

Announcements
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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)