Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello,
I'm trying to create a dynamic report to show customer revenue data over a period of 6 months that will be automatically updated moving forward. I would like to show when a customer hasn't traded with us for a three month period and for this to be automatically flagged in the report.
I've seen messages about using a measure to flag when a value threshold is reached on other threads, but cannot work this out when it comes to dynamic date ranges.
Any help would be greatly appreciated.
Solved! Go to Solution.
This will calculate how many days since the last sale happened. This assumes a Date table is set up.
Days Since Last Sale =
CALCULATE(
DATEDIFF(MAX(Sales[Date]),TODAY(),DAY),
ALL('Date'[Date])
)It assumes your fiter context in the table has customers in it. In my sample data, the last sale for Customer 6 was May 15, 2019, so that was 93 days ago. You could then do whatever you want when that hits 90+ days.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingThis will calculate how many days since the last sale happened. This assumes a Date table is set up.
Days Since Last Sale =
CALCULATE(
DATEDIFF(MAX(Sales[Date]),TODAY(),DAY),
ALL('Date'[Date])
)It assumes your fiter context in the table has customers in it. In my sample data, the last sale for Customer 6 was May 15, 2019, so that was 93 days ago. You could then do whatever you want when that hits 90+ days.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingAdvance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.