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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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