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

Displaying how many times item appears within multiple columns

Hello everyone, I am trying to show how many times a certain location appears within multiple columns onto a dashboard. 

 

Name                     Location             Location 2       Location 3    

Joel CastroOrlando   
Chandle GrantMiami LakesChandler  
Rabia MahmoodMiami LakesMuscle ShoalsChandler 
Daniel ArceusChandlerOrlando  
Victor SmithOrlandoChandlerMiami Lakes 
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Displaying how many times item appears within multiple columns

Hi @jcastr02 

Open Edit queries, click on the "name" column, then unpivot other columns

3.png

Close&&apply

Create a measure

Measure =
IF (
    MAX ( [Value] ) <> BLANK (),
    CALCULATE (
        DISTINCTCOUNT ( Table1[Attribute] ),
        FILTER ( ALL ( Table1 ), Table1[Value] = MAX ( Table1[Value] ) )
    )
)

2.png

Best Regards
Maggie

 

Community Support Team _ Maggie Li
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

2 REPLIES 2
Community Support Team
Community Support Team

Re: Displaying how many times item appears within multiple columns

Hi @jcastr02 

Open Edit queries, click on the "name" column, then unpivot other columns

3.png

Close&&apply

Create a measure

Measure =
IF (
    MAX ( [Value] ) <> BLANK (),
    CALCULATE (
        DISTINCTCOUNT ( Table1[Attribute] ),
        FILTER ( ALL ( Table1 ), Table1[Value] = MAX ( Table1[Value] ) )
    )
)

2.png

Best Regards
Maggie

 

Community Support Team _ Maggie Li
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

Super User
Super User

Re: Displaying how many times item appears within multiple columns

Hi,

As suggested, after unpivoting, simply drag the value column to the Table visual and write this measure

Measure 1= COUNTROWS(Data)

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
New Kudos Received Badges Coming

New Kudos Received Badges Coming

Kudos to you if you earned one of these! Check your inbox for a notification.

Microsoft Implementation for Communities Wins Award

Microsoft Implementation for Communities Wins Award

Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Kudoed Authors (Last 30 Days)
Users online (2,321)