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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors