The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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?
Try this measure:
Top Store =
VAR vTopRow =
TOPN ( 1, DimStore, [Revenue] )
VAR vResult =
CALCULATE ( SELECTEDVALUE ( DimStore[Store_Name] ), vTopRow )
RETURN
vResult
Proud to be a Super User!
User | Count |
---|---|
13 | |
8 | |
8 | |
7 | |
5 |
User | Count |
---|---|
21 | |
15 | |
15 | |
10 | |
7 |