Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
Hi,
I have following situation:
Name of the employee in one column and rest of the columns are having group name.
I am interested in calculating
I am having around 70 groups (70 columns). But not all 70 are having data, most of them will be empty. But columns with empty data are not common. it is random.
For now the temp solution for calculating sum: I have done in excel before importing the data in power BI.
Now main concern is to show the hour distribution of group with data in it (pie chart).
I have total 100 employee, where I will be selecting top 5 based on the maximum hour spent. And I will show the hour distribution on various groups for these employee.
For example:
Sample data set:
Nmae | A | B | C | D | E | F | G | H | I | Sum |
John | 3 | 1 | 5 | 1 | 10 | |||||
Ken | 1 | 3 | 4 | 2 | 1 | 11 | ||||
Raj | 2 | 2 | 1 | 1 | 6 | |||||
Rick | 3 | 3 | 2 | 1 | 9 | |||||
Leo | 2 | 2 | 3 | 1 | 8 | |||||
Tim | 1 | 1 | 2 | 2 | 6 |
Sample pie chart for employee name John:
Solved! Go to Solution.
You need to shape your data first. Load it as is with "get data". Get rid of the Sum Column, then select the first column (Name) and then click Transform\Unpivot Other Columns. Load this table into your data model and go from there.
You need to shape your data first. Load it as is with "get data". Get rid of the Sum Column, then select the first column (Name) and then click Transform\Unpivot Other Columns. Load this table into your data model and go from there.
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
94 | |
86 | |
81 | |
70 | |
49 |
User | Count |
---|---|
143 | |
124 | |
107 | |
60 | |
55 |