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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
emphx1
New Member

Urgent Help! Creating a line graph to show running total of target value by week ending date

Hi guys! I am new to this community and will be my first post, please let me know if I am following all rules and hopeefully this post is petty clear! 

 

Long story short I am fairly new to DAX all self taught, I am trying to created a line graph that shows acrtual values over time by week endign date (No issue here) compared to a target value of what is needed to be obtained every week to maintain schedule by a hard end date. 

 

Example - In order to compelte this stint of the project we need to be able to earn a total of X units per week which I have caculated. I would like to show this on a line graph compared to actuals and see where we line up. 

 

See atatched snip of how this currently looks. Id like this to show out to the end date of 10/2/24 along with a running total of weekly targets by week ending date from start of project to end target date. 

emphx1_0-1721914443008.png

 

 

Any help or tips wopuld be much apprecaited! 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @emphx1 ,

 

Maybe you can try formula like below to create measure:

 

Cumulative_Actual = 
CALCULATE(
    SUM('ActualTable'[ActualValue]),
    FILTER(
        ALL('DateTable'),
        'DateTable'[Date] <= MAX('DateTable'[Date])
    )
)
Cumulative_Target = 
CALCULATE(
    SUM('TargetTable'[TargetValue]),
    FILTER(
        ALL('DateTable'),
        'DateTable'[Date] <= MAX('DateTable'[Date])
    )
)

 

vkongfanfmsft_0-1721978933429.png

 

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @emphx1 ,

 

Maybe you can try formula like below to create measure:

 

Cumulative_Actual = 
CALCULATE(
    SUM('ActualTable'[ActualValue]),
    FILTER(
        ALL('DateTable'),
        'DateTable'[Date] <= MAX('DateTable'[Date])
    )
)
Cumulative_Target = 
CALCULATE(
    SUM('TargetTable'[TargetValue]),
    FILTER(
        ALL('DateTable'),
        'DateTable'[Date] <= MAX('DateTable'[Date])
    )
)

 

vkongfanfmsft_0-1721978933429.png

 

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

HotChilli
Super User
Super User

emphx1
New Member

Adding a bit of clarity here, when I add the tharget value to the graph it is being shown as a flat line rather than a running total starting from 0 as show below. 

emphx1_0-1721914847949.png

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.