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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
KentuckyCatFan
Frequent Visitor

Order Frequency, is a customer ordering more than once per week?

Hello,

I am trying to find how many times a customer is ordering weekly (order frequency).  I have a calendar model set up with the below columns:

KentuckyCatFan_2-1691422086846.png

 

I need to show order freq by Sold-to & Created on date and figure out if they are ordering more than once/week.   END GOAL: to direct a customer to order only once per week if their multiple orders total a full truck load.

 

I'm sure I don't need some of the columns I have, but they were my attempt at trying different DAX formulas which didn't work.

 

I'm really hoping someone has a simple solution.

 

Thanks for the help.

2 REPLIES 2
amitchandak
Super User
Super User

@KentuckyCatFan , First Create a columns and measure like

 

Have these new columns in Date Table, Week Rank is Important in Date/Week Table

Week Rank = RANKX('Date','Date'[Week Start date],,ASC,Dense)
OR
Week Rank = RANKX('Date','Date'[Year Week],,ASC,Dense) //YYYYWW format


These measures can help
This Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))

 

 

Then have a measure like

 

countx(Values(Cutsomer[Customer]), if([This Week] >1, [Customer], blank()))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak:

I'm a bit confused by your comment "First Create a columns and measure like" because it just ends there.  What column & measure should I be creating?  Or, does this first comment refer to what you typed afterwards?

 

Are you saying I need to create a new table called 'Date' and add the 'week rank' or can I do that within the same table I already have?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.