Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I have multiple tables that have parent/child relationships within them. I have created PATH column in each one of them and created a measure to be able to see the summed up value for the nodes as per here.
But I have a header table that can link several of the companies and label them lets say east or west in this example. I would like to see the sum of whole east node that consist of Company A and Company C. Here is the Power BI file for reference.
Here is the screenshot of tables and output I need. The top section contains incoming tables. Bottom left is summation within the first table as described in the forum link above. Bottom right is the table that I need but without Company Column in there and only one row for East/West.
Output I want to see: East 1050; West 600
Note in my modelling I won't be able to connect the Headers table to Sales table as in my real problem I have Sales table at the center surrounded with multiple Master Data with Parent/Child hierarchy in each Master Data. One Header table can not be connected to all the Master Data tables that are filtering one central Key Figure table.
Solved! Go to Solution.
Resolved by having two measures. One that filters row by row and other that does SUMX on that measure.
Measure 3 = VAR c = SELECTEDVALUE ( Headers[Company] ) RETURN CALCULATE ( SUM ( Sales[Sales] ), PATHCONTAINS ( Sales[Path], c ) )
Measure 4 = sumx(Headers, [Measure 3])
File updated.
Hi @Anonymous ,
What results do you expect to receive? Like the result in that case? You could use a table to describe it.
Updated.
Resolved by having two measures. One that filters row by row and other that does SUMX on that measure.
Measure 3 = VAR c = SELECTEDVALUE ( Headers[Company] ) RETURN CALCULATE ( SUM ( Sales[Sales] ), PATHCONTAINS ( Sales[Path], c ) )
Measure 4 = sumx(Headers, [Measure 3])
File updated.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
81 | |
53 | |
37 | |
35 |