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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
DagmaraBI
Regular Visitor

How to show rank nr 1 value on card

Hello

 

I have this report, where I rank stores by revenue.

 

I have two tables
FactSales
DimStore

 

I have created measure calculating RANK, and I can see best performing stores 🙂 (Thanks to this community)

Now I need to show 1 THE BEST PERFORMING STORE on a card (right side of report)

 

How to achieve that?

 

I have tried using
calculate with first non blank, and cant get that right. 

 

Any help please?

Stores.JPG

1 REPLY 1
DataInsights
Super User
Super User

@DagmaraBI,

 

Try this measure:

 

Top Store = 
VAR vTopRow =
    TOPN ( 1, DimStore, [Revenue] )
VAR vResult =
    CALCULATE ( SELECTEDVALUE ( DimStore[Store_Name] ), vTopRow )
RETURN
    vResult




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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