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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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!:
The Definitive Guide to Power Query (M)

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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