Forum Discussion

mnt23's avatar
mnt23
Icon for Helper I rankHelper I
1 year ago
Solved

Grouping data to display at different levels

Afternoon all,    I've been grappling with a better way to display and interact with some data and I'm sure Power BI can do it but it's been so long since I've used it I am really stuck with how to...
  • audreygerred's avatar
    1 year ago

    Hi! I added the data into Power BI, then went into Power Query to unpivot most of the columns. I selected Organisation, Dept, and Loc then went to Transform ribbon and clicked the down arrow on 'Unpivot Columns' and selected 'Unipivot Other Columns'. This step puts the data into this format:

    You can name your columns that it created anything you want, I just left mine the default names for this exercise.

    Next, I split the Attribute column by delimeter with space as the delimeter and chose left most occurance:

    Now, we have data like this:

     

    Next, I click close and apply.

    Next, I created a measure for vehicle count as Vehicle Count = SUM ('YourTable'[Value])

    Now, you can create visuals and filters however you want: