Forum Discussion

jsuttmann's avatar
jsuttmann
Helper I
4 years ago
Solved

Hierarchy Setup Help

I need assistance organizing location data used in a hierarchy in order to build a relationship with a sales data table.  Attached is a simplified version of the report using that data.  The hierarch...
  • HotChilli's avatar
    4 years ago

    You could remove all the non-building rows from the Sales table and create a relationship between Building in Locations and Location in Sales. (1.m).

    This would mean all the Sales data is at the same granularity and once you have the hierarchy in place, powerbi will take care of all the subtotals and totals.

    The main visual would use the location hierarchy from Locations and Sales Volume from Sales.

    The slicer would use location hierarchy (it could be multi-select)

    You would have to have trust in your data being correct at the lowest level and all the Locations set up correctly in order to make the totals reconcile with the original data.

    Let me know what you think.