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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.