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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
floo_o
Regular Visitor

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

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

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.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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