This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi,
I'm wondering whether anyone can help me as I'm quite stuck.
I don't have direct access to my data source for use in Power BI, so my data is pre-aggregated before I import it. My data contains a multiple different tables with the same categories for example:
Measure 1:
| Month | Department1 | Department2 | Total |
| Feb-24 | 254 | 562 | 816 |
| Jan-24 | 201 | 487 | 688 |
| Dec-23 | 225 | 421 | 646 |
| Nov-23 | 284 | 500 | 784 |
| Oct-23 | 178 | 497 | 675 |
Measure 2:
| Month | Department1 | Department2 | Total |
| Feb-24 | 181 | 441 | 622 |
| Jan-24 | 224 | 543 | 767 |
| Dec-23 | 258 | 429 | 687 |
| Nov-23 | 232 | 497 | 729 |
| Oct-23 | 193 | 552 | 745 |
How can I structure this data so that I can use Department 1, 2 and Total as series in visuals and filters in a slicer, as well as being able to use the date in a slicer. I've so far only been able to the sum of the departments to a visual without them being individual series.
Apologies if this is very basic and straightforward.
Many thanks.
Solved! Go to Solution.
Hi @rock_cloud ,
According to your description, you can use the unpivot function in power query. The exact steps are:
1. Click Transform data to open the power query interface
2. Select the Department1 Department2 columns, right click and select the unpivot columns option.
At this time there will be a total, department name and department id for the columns of the table
So you can filter by date, department name or total.
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Many thanks for these solutions! Worked perfectly and saved a massive headache! 👍
Hi,
In the Query Editor,
Hope this helps.
Hi @rock_cloud ,
According to your description, you can use the unpivot function in power query. The exact steps are:
1. Click Transform data to open the power query interface
2. Select the Department1 Department2 columns, right click and select the unpivot columns option.
At this time there will be a total, department name and department id for the columns of the table
So you can filter by date, department name or total.
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 26 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 37 | |
| 33 | |
| 23 | |
| 23 |