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
olgadir27
Frequent Visitor

Data structure

Hello! I have a table where a cost flow is going through the levels (1->2->3->4), with a few exceptions (1->2 & 1->3).

Is there a way to subordinate the table to see the flow from 4 to the source? (How much 4 earned from 3, 3 got from 2, etc.)?

The problem is that the relation between the origins and destinations is MANY to MANY.

In a decomposition tree (by level 2 detail)?

Thank you so much in advance for any ideas!

Source level 1Origin level 2Origin of costTarget level 1Target level 2Final cost
1A1502D98
1A102E7
1B502E28
1C702F42
2D983M93
2E283N23
2F423L37
1A1503M42
1B503N12
1C703L18
3M1304X127
3N654Y62
3L494Z46
4 REPLIES 4
v-xicai
Community Support
Community Support

Hi @olgadir27 ,

 

You may create calculated columns like DAX below.

 

Path Level1= PATH(Table1[Origin Level 1], Table1[Destination Level 1] )



Path Level2= PATH(Table1[Origin Level 2], Table1[Destination Level 2] )

 

For reference:

 

PATH, PATHLENGTH, PATHITEM, PATHITEMREVERSE, PATHCONTAINS – playing whith hierarchies (DAX – Power P...

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Thank you everyone for your time and suggestions!

 

In PATH, I see I have duplicates both in Origin and Destination. My doubt is, can I omit them?

amitchandak
Super User
Super User

Greg_Deckler
Super User
Super User

@olgadir27 - Seems like you want something that maybe uses the PATH DAX functions. Also, might be a transitive closure problem. https://community.powerbi.com/t5/Quick-Measures-Gallery/Transitive-Closure/m-p/783828#M388


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.