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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors
Top Kudoed Authors