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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
insandur
Helper II
Helper II

Create a column based Rank measure.

Hi,

 

I have a product coulumn with the Qty and also created a Rank meausre.

Rank = RANKX(ALL(Data[Product]),Data[Total SKU STK],,DESC,Skip)
now i want a column in data which shows if (Rank <11 "Top10 items", "remaining" ) as shown in column2 below.
 
i want to use this column in a gage Visual as it takes only column not the measure.
ProductTop Cat( Required column)RankQty
'5043top101561
'4893top102366
'5123top103332
'7163top104261
'7183top105225
'7203top105225
'3592top107216
'3612top107216
'3631top107216
'7142top107216
'3523remaining11189
'3563remaining11189
'3603remaining11189
1 ACCEPTED SOLUTION
Mahesh0016
Super User
Super User

@insandur 

Mahesh0016_0-1674042833981.png

 

New Column :
Top Cat =
 VAR Rankk =RANKX(ALL('Product'[Product],'Product'[Qty]),'Product'[Total Qty],,DESC,Skip)
 RETURN
 IF(Rankk<11,"Top10 items", "remaining")
 
 
@insandur If this post helps, please consider accept as solution to help other members find it more quickly and Appreciate your Kudos.

View solution in original post

2 REPLIES 2
FreemanZ
Super User
Super User

hi @insandur 

it seems you have all you want. what do you expect?

Mahesh0016
Super User
Super User

@insandur 

Mahesh0016_0-1674042833981.png

 

New Column :
Top Cat =
 VAR Rankk =RANKX(ALL('Product'[Product],'Product'[Qty]),'Product'[Total Qty],,DESC,Skip)
 RETURN
 IF(Rankk<11,"Top10 items", "remaining")
 
 
@insandur If this post helps, please consider accept as solution to help other members find it more quickly and Appreciate your Kudos.

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 MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.