Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
I have a star model with the sales table as fact and the date and products dimension, so I need to show in a table or matrix the number of days that a product has not had sales in the last n days as selected. Example The product1 within the last 5 days 3 days has not had sales and only two days it has. It has to be a dynamic mesure by date and number of days
Solved! Go to Solution.
If I assume you always want to take today as the current point in time, the easiest way to do this is to add a calculated column in the product table. Write a formula something like this
days since sale = value(today()-calculate(max(sales[sales date]))))
this should give a number. You can use that in a slicer and a report.
Hi,
Try these measures
Sales = sum(Data[sale])
Measure = countrows(filter(calculatetable(calendar,datesbetween(calendar[date],today()-4,today())),[Sales]=0))
If this does not work, then share the download link of the PBI file.
If I assume you always want to take today as the current point in time, the easiest way to do this is to add a calculated column in the product table. Write a formula something like this
days since sale = value(today()-calculate(max(sales[sales date]))))
this should give a number. You can use that in a slicer and a report.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
84 | |
83 | |
64 | |
60 | |
55 |
User | Count |
---|---|
183 | |
111 | |
105 | |
77 | |
70 |