cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TinyElephant
Helper II
Helper II

Value Count after Unpivot Columns is not unique

I have some employee data in Excel table containing experience and software skills. I applied Unpivot Columns of both Experience and Software Skills separately and plotted them. The percentage/proportion is coming out correct but the count is exaggerated. Please suggest.

 

TinyElephant_1-1627908373209.png

 

Employee1-3 years4-8 years9+ yearsSoftware 1Software 2Software 3
John Y Y Y
Derek Y YY 
MichaelY     
William  YYYY

 

 

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @TinyElephant ,

 

Step1: unpivot the year columns.

Step2: filter experience column which value is blank.

Step3: unpivot the software columns.

1.PNG

3.PNG

2.PNG

Pbix as attached.

 

Best regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

6 REPLIES 6
v-jayw-msft
Community Support
Community Support

Hi @TinyElephant ,

 

Step1: unpivot the year columns.

Step2: filter experience column which value is blank.

Step3: unpivot the software columns.

1.PNG

3.PNG

2.PNG

Pbix as attached.

 

Best regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Thanks. Any suggestions for the case when I have multiple such unpivoted headers and their values?

TinyElephant
Helper II
Helper II

Any other way to represent the excel data would also be fine. 

Greg_Deckler
Super User
Super User

@TinyElephant You can use:

Count Measure = COUNTROWS(DISTINCT('Table'[Employee]))

@ me in replies or I'll lose your thread!!!
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Learn Power BI 2nd Edition

@GregNow the percentage is incorrect. I'll figure out a way to attach .pbix file

TinyElephant_0-1627909358833.png

TinyElephant_0-1627963964200.png

 

Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors