Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
octygen
New Member

Show the budget decreasing over time

Hello All! I have the following chart. I am trying to show that there was a budget at the beginning of the graph ($3M) and I want to show how it decreases over time. The goal would be to create a line that starts at $3M and goes down every month as budget is being taken away by the various labor and OE activities.

 

How can I create a measure to plot such a line?

 

Note that the activities are aggregations of line items divided by weeks. That is the only raw data I have in my data source. 

 

Clipboard01.jpg

1 ACCEPTED SOLUTION
TomMartens
Super User
Super User

Hey,

 

w/o having more information about the exact structure of exisiting tables I would create a measure that deducts the running total of all the OE and labor activities, something like this

 

Measure = 
  3000000 - 
  CALCULATE(
  SUM('table'[labor1]) + SUM('table'[labor2]) + ... + SUM('table'[OEn])
  ,FILTER(
    ALL('table'[datecolumn])
    ,'table'[datecolumn] <= MAX('table'[datecolumn])
  )
)

This site describes alomost everything one has to know to create Date related DAX calculations:

http://www.daxpatterns.com/time-patterns/

 

Hope this helps

 

Regards

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

3 REPLIES 3
octygen
New Member

THAT helped a lot! Thank you! 

 

Capture.JPG

Thanks for sharing a screenshot of the result.

 

I really like the name of the measure 😉

 

Cheers

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
TomMartens
Super User
Super User

Hey,

 

w/o having more information about the exact structure of exisiting tables I would create a measure that deducts the running total of all the OE and labor activities, something like this

 

Measure = 
  3000000 - 
  CALCULATE(
  SUM('table'[labor1]) + SUM('table'[labor2]) + ... + SUM('table'[OEn])
  ,FILTER(
    ALL('table'[datecolumn])
    ,'table'[datecolumn] <= MAX('table'[datecolumn])
  )
)

This site describes alomost everything one has to know to create Date related DAX calculations:

http://www.daxpatterns.com/time-patterns/

 

Hope this helps

 

Regards

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.