Forum Discussion

cjc322's avatar
cjc322
Frequent Visitor
10 years ago
Solved

Creating a Hierarchy from Multiple Tables

Hello, I would like to create a Hierarchy for Drill Down purposes within a TABLE.   I currently have a report that has a START DATE and END DATE. When a user inputs two dates it shows the NETSALES...
  • ankitpatira's avatar
    10 years ago

    cjc322 in power bi desktop there is inline-hierarchy option but that only allows hierarchy from the current table. However if you have tables joined then you should be able to create drill down without any extra steps. All you need to do is select chart that supports drill down (column, bar etc) and put multiple fields from multiple tables (all joined) under Axis area.

     

  • PowerDAX's avatar
    10 years ago

    You can also denormalize the fields into the table with the lowest granularity (assuming ITEM SKU).  This can be done on your SQL query (if using a query on a db) or iitem table (if other tables are all have relationships) by adding calculated columns to the item table....i.e.

     

    SUBCLASS=RELATED( TABLE[SUBCLASS])

    CLASS=RELATED( TABLE[CLASS])

    DEPARTMENT=RELATED( TABLE[DEPARTMENT])

    STORE=RELATED( TABLE[STORE])