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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
TinyElephant
Helper III
Helper III

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 III
Helper III

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!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

@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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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