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 guys,
I've an excel file with grouped columns as below:
I need to import it in power bi as below:
any help will be much appreciated please.
Solved! Go to Solution.
Hi @Mai_Nashaat ,
Power BI will read the worksheet as is and will not matter whether rows or columns have been grouped. If you want to achieve a result similar to below, Power BI needs to be able to identify which rows are the main and subtotals. You can either do this via a conditional column or doing a merge with a table with data that indicates kind of total a row is.
After that, extra columns are created in PQ and total rows are removed.
Attached is a sample pbix to help you get started.
Hi @Mai_Nashaat ,
Power BI will read the worksheet as is and will not matter whether rows or columns have been grouped. If you want to achieve a result similar to below, Power BI needs to be able to identify which rows are the main and subtotals. You can either do this via a conditional column or doing a merge with a table with data that indicates kind of total a row is.
After that, extra columns are created in PQ and total rows are removed.
Attached is a sample pbix to help you get started.
Hi @Mai_Nashaat,
You can do this by selecting these fields and using Unpivot Selected Columns.
Did I answer your question? Mark this post as a solution if I did!
Consider taking a look at my blog: Forecast Period - Previous Forecasts
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 |
|---|---|
| 31 | |
| 25 | |
| 21 | |
| 18 | |
| 17 |
| User | Count |
|---|---|
| 62 | |
| 34 | |
| 33 | |
| 25 | |
| 24 |