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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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