Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Helper IV
Helper IV

CALCULATE NO. OF ORDERS between Last Order Rating date and today's date

Hi Power BI Fam,


I need help! I am stuck with something. 


I need to get the number of orders booked by the customer from the Last order Rating date to TODAY. 



Any help is much appreciated!!!!


Helper IV
Helper IV

@amitchandak it didn't work.😶

Hi @Andrew_na_lang ,


The screenshot you provided cannot provide effective information. Unfortunately, I don't know which fields to calculate the number of orders. You can paste some sample data and the results you expect 

Best Regards,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Super User
Super User

@Andrew_na_lang , Try a measure like


measure =
var _max = calculate(max(Table[Last order Rating date]), allexcept(Table, Table[customer])) //or // maxx(allselected(Table) ,Table[Last order Rating date])
calculate(count(Table[Order]), filter(Table, Table[Last Order Date] >= _max && Table[Last Order Date] <=Today()))

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors