cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
glandrum72
New Member

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
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.