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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
samnaw
Resolver I
Resolver I

Top Three (Text)

Hello:

 

I have a pivot table in my dashboard like this:

 

* there are like 24 stores. 

store_nameShare Of Sale
Store 145.34%
Store 241.45%
Store 337.22%
Store 435.62%
Store 534.73%

 

I would like a DAX formula that would output me only the "Top 3 Store" based on Share of Sales. Share of Sales is already a DAX formula (i.e Subscription Sales/Total Sales)

 

The output should look like this:

Rankstore_name
1Store 1
2Store 2
3Store 3

 

Not sure how to go about doing this. 

2 REPLIES 2
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @samnaw 

another option with measure would be this:

 

Mikelytics_5-1673533609748.png

RANK | Rank of Item = 
RANKX(
    ALL(Dim_Product),
    [Aggregation | Sum]
)

After putting the table in the visual you can sort the column with 1,2,3

 

Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your thumbs up!
@ me in replies or I'll lose your thread.

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @samnaw 

 

Do you want a measure is the following approach also fine? Has the advantages that you dont need additional measures.

 

Mikelytics_0-1673533176746.png

Mikelytics_4-1673533323889.png

 

 

Mikelytics_3-1673533293676.png

 

Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your thumbs up!
@ me in replies or I'll lose your thread.

 

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors