cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
djwbaker
Frequent Visitor

cumulative sum current month but orders placed in previous mths

Hi

doing a current month sales report, showing a simple area graph with a cumulative total 
issue is there are orders placed prior to the current month
data table is date order placed, plant and value linked to a calendar table using the date field

cumulative with all dates in it works but i only want current mth dates on the graph
if the graph has only current mth starts from 0, and dismisses all the advance orders placed for current mth.

any thoughts?

CUMULATIVE TOTAL OPEN ORDERS =
CALCULATE(
SUM('DAILY_SALES_V1 0'[incoming orders valu]),
FILTER(
ALLselected('DAILY_SALES_V1 0'),
'DAILY_SALES_V1 0'[Calendar day.Calendar day Level 01] <= MAX('DAILY_SALES_V1 0'[Calendar day.Calendar day Level 01])
)
)




2 REPLIES 2
amitchandak
Super User IV
Super User IV

@djwbaker , Not very clear to me. It is starting with 0 and you do not want that? all can do that

 

CUMULATIVE TOTAL OPEN ORDERS =
CALCULATE(
SUM('DAILY_SALES_V1 0'[incoming orders valu]),
FILTER(
All ('DAILY_SALES_V1 0'),
'DAILY_SALES_V1 0'[Calendar day.Calendar day Level 01] <= MAX('DAILY_SALES_V1 0'[Calendar day.Calendar day Level 01])
)
)

 

It is not starting with 0 and you want that?

Can you share sample data and sample output in a table format? Or a sample pbix after removing sensitive data.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Hi
we are reciving a lot of orders in advance of the 1st so we should start the month with a lot of sales (my calendar is only current mth, and blank indicates orders placed before current month with a due date of this month)

djwbaker_0-1611147517805.png

if i restrict graph to just 01/01 to 31/01 the pre orders are lost
in excel i can just do sumif < [date] 

djwbaker_1-1611147653470.png

 

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors