Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I would like to create a measure that sums daily total up to the day prior, and the measure [Date interval] is defined as:
[Date interval] = datediff (today(), 'Dates'[Date], day)
Solved! Go to Solution.
If I understand what you are trying to do correctly, you can try below
Forecast1 =CALCULATE ( SUM ( 'Sales'[TOTAL] ), 'Dates'[Date] <= MAX ( 'Dates'[Date] ) - 1 )
what this does is it sums up all sales[Total] value up to the day before.
Pasting some sample data will always help other people better understand what you are trying to do
If I understand what you are trying to do correctly, you can try below
Forecast1 =CALCULATE ( SUM ( 'Sales'[TOTAL] ), 'Dates'[Date] <= MAX ( 'Dates'[Date] ) - 1 )
what this does is it sums up all sales[Total] value up to the day before.
Pasting some sample data will always help other people better understand what you are trying to do
User | Count |
---|---|
140 | |
113 | |
104 | |
77 | |
65 |
User | Count |
---|---|
135 | |
117 | |
101 | |
71 | |
61 |