Forum Discussion

cats_five's avatar
cats_five
Frequent Visitor
9 years ago
Solved

Building a hierarchy

I am trying to construct a visualisation with drill-down on data from an SQL Server database.  This is an overview of my tables:   COUNTY      TOWN         AREA        ASSET          DEFECT County...
  • cats_five's avatar
    cats_five
    9 years ago

    Thanks for your help.  Maybe I'm not clever enough with Power BI at present.

     

    I ended up writing a custom SQL which selected all the columns I needed along with renaming columns (I don't want two called CategoryName or any number called ID!) and using that to pull in the data rather than letting Power BI do it itself.

     

    I can now drill down to the children of where I click so I'm happy.  I'm also happy as it's probably pulling in less data (there are quite a few columns that are not needed), plus I understand SQL queries and it was easy to look at the results in SSMS to verify it's working correctly.  I do have an SQL issue but I'm sure it can be resolved - I've used Informix for years and SQL Server is just slightly different...  :)