cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Cumulative doesn't give the correct numbers

Hi guys,

 

I am trying to create my own forecast because it is based on a planning.

To do this I have a few measures and some data to go with it.

 

Measure to determine the price of the hours in a certain month:

Planning = sumx('Forecast'; 'Forecast'[Hours] * 'Forecast'[PriceFC])
 
Measure to calculate the cumulative total of the worked hours
CumulativeTotal = CALCULATE(Sum(TimeTransactions[AmountFC]);FILTER(ALL(PowerBI_Calendar[Date]); PowerBI_Calendar[Date] <= Max(PowerBI_Calendar[Date])))
 
Measure to determine if I need to use the actual worked hours or the planning:
GuideLine = IF(OR(SUMX(TimeTransactions; TimeTransactions[AmountFC]) = BLANK(); SUMX(TimeTransactions; TimeTransactions[AmountFC]) < [Planning]); [Planning]; SUM(TimeTransactions[AmountFC]))
 
Measure to get the cumulative total of my guideline so it can be shown nicely in a graph:
Cumulative Forecast = CALCULATE([GuideLine];FILTER(ALL(PowerBI_Calendar[Datum]); PowerBI_Calendar[Datum] <= Max(PowerBI_Calendar[Datum])))
 
The problem lies with the Cumulative forcast, it should be a different number than it is showing.
Does anyone know what I am doing wrong?
 
 
 Capture1.PNG
Capture2.PNG
7 REPLIES 7
Anonymous
Not applicable

@v-kelly-msft  "maand" (or month) is part of the PowerBI_Calendar, it didn't help unfortunatly to add the "Datum" column.

 

@amitchandakhere is some sample data, it's all data for one project that is also how they are usually connected.

 

Sample data 

 

Thanks for the help so far!

 

Best regards,

Queenie

@Anonymous 

What is your cumulative formula? As you are shared data with month, I doubt if the same month has been used. Not the month number or Month Year(YYYYMM) or date . Because in that it might do text sorting for cumulative.



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!
Anonymous
Not applicable

@amitchandakI am not quite sure what you are asking.

But I shared all the measure in the post so I hope you can find what you need there.

 

I will also add a screenshot of my Calendar Table, maybe that answers some questions.

If it doesn't please let me know.

 

Capture1.PNG

v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

Drag the column PowerBI_Calendar[Datum] to the table visual to see if it shows correctly?

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

 

 

amitchandak
Super User
Super User

@Anonymous Can you share sample data and sample output. make me @

 

Appreciate your Kudos.



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!
Greg_Deckler
Super User
Super User

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ me in replies or I'll lose your thread!!!
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Learn Power BI 2nd Edition
amitchandak
Super User
Super User

Can you share sample data and sample output.

Mark me @



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors