Forum Discussion
amarada
8 years agoRegular Visitor
Calculate the closing estimate
Hi, I need to create a measure to divide the num days of a month/NUMBER OF DAYS WITH SALES DATA, ir order to calculate a closing estimate. Fe: November has 30 days and I know the sales for the f...
- 8 years ago
Tough to be specific here without sample data but perhaps something along the lines of:
Sales Data = CALCULATE(SUM(Sales[Sales]),FILTER(Sales,[Sales]<>BLANK()))
?
Anonymous
8 years agoNot applicable
Measure:
Estimated Sales at EOM =
VAR DaysWithSales=distinctcount('sales'[date])
VAR DaysInMonth = distinctcount('datetable'[date])
RETURN
SUM('sales'[salesamount])/
DIVIDE(DaysWithSales,DaysinMonth,0)
I think something like this would work if you have a date table linked to your sales table. If you then create a table where the month/year is a dimension, it should calculate it correctly.