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
SillySuzy
Regular Visitor

a

 
2 REPLIES 2
amitchandak
Super User
Super User

@SillySuzy , try like

 

Within90DaysPurchases =
var _max = calculate(Min(Sales[OrderDate]), filter(ALLSELECTED ( Sales ), Sales[CustomerKey] = MAX ( Sales[CustomerKey] ) ))
return
CALCULATE (
COUNTROWS ( Sales ),
filter( ALLSELECTED ( Sales ),
Sales[CustomerKey] = MAX ( Sales[CustomerKey] ) &&
Sales[OrderDate] > _max &&
Sales[OrderDate] < _max + 90
) )

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

I appreciate your help, but I cant use Filter(), sadly.

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.

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.