When the Sales data have missing dates and the Budget has values in year and month, how can we display running total of daily budget considering missing dates?
If there are missing dates, the running total of daily budget is not displayed expectedly, as shown below.
[Budget (Budget)] / DAY(DATEADD('day',-1,DATEADD('month',1,[Year and Month])))
3. Create a calculated field and name it Budget per day (replace null with previous value).
IF ZN(LOOKUP(SUM([Sales (Sales)]),0)) = 0 THEN
PREVIOUS_VALUE(SUM([Budget per day]))
ELSE
SUM([Budget per day])
END
4. Create a calculated field and name it Running total of daily budget.
RUNNING_SUM([Budget per day (replace null with previous value)])5. Add discrete YEAR(Date), MONTH(Date) and DAY(Date) to Columns.
001468375
55 KB

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.