Forum Discussion
Anonymous
2 years agoNot applicable
Sum for most recent date available
I have a table that records sales by date. I need to be able to display the total sales for each date and also display the prior date's total. What is a measure in dax that I can use to sum based on ...
smpa01
Community Champion
2 years agoAnonymous you can do this
Prior Sales = CALCULATE([Total Sales], OFFSET(-1,ALL(data[Record Date]),ORDERBY(data[Record Date])))
- Anonymous2 years agoNot applicable
I was able to create the measure with no errors however still getting blank values in the table. I'll receive a total value for prior date when I add in total sales for that date as a column value. But the prior date values for each is still blank.
- smpa012 years ago
Community Champion
Anonymous I tried to answer as per your sample data and desired output provided previously as you can see in the screenshot. I am not sure what you are referring to. please provide sample data and exact desired output.