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
ajay_gajree
Helper I
Helper I

DAX Top 1 Name

Hi all

If I have a table like

Channel. % Share Of Mentions
FB. 25
Insta. 35
Twitter. 40

Where % Share of Mentions is a written Measure, how do I write some DAX to return Twitter as the top channel based on that measure?
2 REPLIES 2
harshnathani
Community Champion
Community Champion

Hi @ajay_gajree ,

 

Create a Measure =

 

RANKX( ALL('Table'[Channel]), [%Share of Mention] , ,DESC)

 

Then put a visual filter on rank=1

 

Regards,

Harsh Nathani

baghdadi62
Resolver III
Resolver III

Hi,

use this measure:

Measure_1 = CALCULATE (
    MAX ( Table[Social_Name] ),
    FILTER (
        VALUES ( Sheet1[Share] ),
        RANKX ( ALL ( Table[Share] ),Table[Share],, DESC ) = 1
    )
)

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.

Top Solution Authors