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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
jocko327
New Member

Need DAX measure ranking items based on items from the same column

I have a table that has ITEMS and CHECK NUMBERS. For each check number, there could be any number of items. I would like to know for each ITEM that I have, which other items show up most often on the same CHECK NUMBER.

 

The table below shows a few different checks. Calvin Creamidge is on two different checks, so this formula should help me see that for each check number that Calvin Creamidge was ordered, it was paired with an Oatbama *NITRO* most often, and everything else second most often.

 

For Oatbama *NITRO*, the formula should help me see that it is paired on a check number with a STICKER most often, tied with Calvin Creamidge, then everything else second most often. I would like the formula to ignore the times OATBAMA shows up on the same check number (I don't need to know if ordering this beer once makes them order it again).

 

Thank you in advance for the help!

 

ITEM

CHECK NUMBER

Calvin Creamidge

080996
Shandrew Jackson Raspberry080996
POTUS Burger080996
Fried Pickles080996
OG Burger080996
Oatbama *NITRO*080996
Oatbama *NITRO*080996
Sticker080996
Sticker080996
Oatbama *NITRO*081000
Calvin Creamidge081000
Boneless Wings081024
Dill Clinton081024
Rutherford Double D Haze081024
Oatbama *NITRO*081024
Fried Cheese Curds081024
Dill Clinton081024
Rutherford B. Haze081024
Ryesenhower081024
Dill Clinton081024
Oatbama *NITRO*081024
Ryesenhower081024
Nachos081024

 

2 REPLIES 2
jocko327
New Member

@VahidDM The output should look at each item in the table, and rank the items that show up on the same ticket number by frequency. I really only need it to rank the top 3 items. We do not need to know the quantity of items that shows up on one ticket. I am most interested in knowing which things get ordered together the most.

 

ItemFound on Same CheckRankCount of appearances on same check
Boneless WingsDill Clinton11
 Fried Cheese Curds11
 Nachos11
Calvin CreamidgeOatbama *NITRO*12
 Fried Pickles21
 OG Burger21
Dill ClintonBoneless Wings11
 Fried Cheese Curds11
 Nachos11
Fried Cheese CurdsBoneless Wings11
 Dill Clinton11
 Nachos11
Fried PicklesCalvin Creamidge11
 Oatbama *NITRO*11
 OG Burger11
NachosBoneless Wings11
 Dill Clinton11
 Fried Cheese Curds11
Oatbama *NITRO*Calvin Creamidge12
 Boneless Wings21
 Calvin Creamidge21
OG BurgerCalvin Creamidge11
 Fried Pickles11
 Oatbama *NITRO*11
POTUS BurgerCalvin Creamidge11
 Fried Pickles11
 Oatbama *NITRO*11
Rutherford B. HazeBoneless Wings11
 Dill Clinton11
 Fried Cheese Curds11
Rutherford Double D HazeBoneless Wings11
 Dill Clinton11
 Fried Cheese Curds11
RyesenhowerBoneless Wings11
 Dill Clinton11
 Fried Cheese Curds11
Shandrew Jackson RaspberryCalvin Creamidge11
 Fried Pickles11
 OG Burger11
StickerCalvin Creamidge11
 Fried Pickles11
 OG Burger11
VahidDM
Super User
Super User

Hi @jocko327 

 

Can you post a sample of the expected output?

Appreciate your Kudos!!
LinkedIn:www.linkedin.com/in/vahid-dm/

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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