Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get 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

Reply
aktripathi2506
Helper IV
Helper IV

Big Data Problem: to create visual from large number of column

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

  1. Total hour spent by the employee on different group.
  2. Pie chart of showing the distribution of these hours.

 

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:

 

NmaeABCDEFGHISum
John3  1  51 10
Ken1 3 4 2 111
Raj 2 2 1 1 6
Rick3 3  2  19
Leo 2  2  318
Tim1  1  2 26

 

 

Sample pie chart for employee name John:

 

 

pic.png

1 ACCEPTED SOLUTION
MattAllington
Community Champion
Community Champion

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.



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

1 REPLY 1
MattAllington
Community Champion
Community Champion

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.



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.