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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jcastr02
Post Prodigy
Post Prodigy

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
v-juanli-msft
Community Support
Community Support

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
Ashish_Mathur
Super User
Super User

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/
v-juanli-msft
Community Support
Community Support

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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