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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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

@olgadir27 , see if use relation can help. Make inactive relation and activate as per need

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Community Champion
Community Champion

@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



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.