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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.