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
I have a table which contains the columns: employee, salary, hourly, bonus, compensation. I want to create chart which has has three columns: employee, pay type and pay. The employee column would be contain the same employee name as in the first table, the pay type would be either salary, hourly, bonus or compensation. There would be multiple rows per employee, one for each pay type, but only if there is a value in the corresponding column in the first table, if it is blank there would be no row for it. And then the pay column would have the dollar amount from the first column.
Can this be done in Power BI? If so, how?
Solved! Go to Solution.
Hi @Anonymous,
If I understand correctly, the table contains five columns: Employee, Salary, Hourly, Bonus, Compensation. And you want to get the table with three columns: Employee, Pay type (contains Salary, Hourly, Bonus and Compensation) and pay, right?
In your scenario, you can open Query Editor, then check the Employee column, click Unpivot Other Columns. If original table columns Salary, Hourly, Bonus or Compensation is blank, there is no row for it after this operation automatically. See:
1. Assume the original table is below:
2. Use "Unpivot Other Columns" option.
If I misunderstand your requirement, please share some sample data and screenshots about desired results for our analysis.
Best Regards,
Qiuyun Yu
Hi @Anonymous,
If I understand correctly, the table contains five columns: Employee, Salary, Hourly, Bonus, Compensation. And you want to get the table with three columns: Employee, Pay type (contains Salary, Hourly, Bonus and Compensation) and pay, right?
In your scenario, you can open Query Editor, then check the Employee column, click Unpivot Other Columns. If original table columns Salary, Hourly, Bonus or Compensation is blank, there is no row for it after this operation automatically. See:
1. Assume the original table is below:
2. Use "Unpivot Other Columns" option.
If I misunderstand your requirement, please share some sample data and screenshots about desired results for our analysis.
Best Regards,
Qiuyun Yu
Perfect. Thanks!
Power BI does not have a true pivot table visualization with all of the features/functionality of Excel pivot tables. However, for you needs, it sounds like the matrix visualization should be able to do what you want.
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 |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 33 | |
| 23 | |
| 23 |