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
glandrum72
Frequent Visitor

Counting choices in multiple columns then displaying top five columns the most of a choice

Howdy all!

 

First of all let me say I am brand new to Power BI. I have done some simple visualizations and new calculations but that is about it so far.  Thank you in advance for your help.

 

I have a sharepoint list that looks like this...

glandrum72_1-1669570409925.png

 

In all these columns (choice) the choices are the same, ME, NI, or NA. The name of the columns is an inspection criteria.  What I would like to do is total the number of times NI is selected in each column then create a visual that will show the top five columns that have the most NI selected.

Thank you!

1 ACCEPTED SOLUTION
mangaus1111
Solution Sage
Solution Sage

Hi @glandrum72 ,

see my pbi file. First you have to unpivot all the columns in power query, then create a measure.

https://1drv.ms/u/s!Aj45jbu0mDVJi2xDDyH6fTOf1CpZ?e=CiGObu

 

If you want the TOPN 5, you can use the advanced filter in the filter pane.

 

mangaus1111_0-1669648496385.png

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

6 REPLIES 6
mangaus1111
Solution Sage
Solution Sage

Hi @glandrum72 ,

see my pbi file. First you have to unpivot all the columns in power query, then create a measure.

https://1drv.ms/u/s!Aj45jbu0mDVJi2xDDyH6fTOf1CpZ?e=CiGObu

 

If you want the TOPN 5, you can use the advanced filter in the filter pane.

 

mangaus1111_0-1669648496385.png

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Thank you so much! It works perfectly.

mangaus1111
Solution Sage
Solution Sage

hi @glandrum72 ,

please send data in txt format

Please forgive the ignorance. But are you talking about exporting to an excel spread sheet?

you can copy-past data in here

 

mangaus1111_0-1669622721297.png

 

P/S_ChemicalUse/SDSP/S_EnviroMgmtP/S_FollowingProcedure(s)P/S_JSA/JHAP/S_MatHandling/RiggingP/S_CriticalWorkP/S_SafeWorkPermit/ProcessP/S_SufficientProcedure/TrainingP/E_AwkwardPositionsP/E_BendingTwistingP/E_CarryingTechniquesP/E_LineOfFireP/E_PinchPointsP/E_ProperDistancingP/E_StruckBy/CaughtBetweenKB_AppropriatePaceKB_AttentivenessKB_Attitude/ApproachKB_AwareOfSurroundingsKB_ContinualAssessmentKB_CommunicationKB_OwnershipKB_Preparation
MEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEME
MEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEME
MEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEME
NIMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEME
N/AN/AN/AN/AN/AN/AN/AN/AMEMEN/AN/AN/AN/AN/AMEMEMEMEMEMEMEME
MEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEME
MEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEME
NIMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEMEME

 

Sorry I accidently hit the Accept as Solution button. Trying to figure out how to reset that now. Thanks

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.