Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Any help or tips wopuld be much apprecaited!
Solved! Go to Solution.
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])
)
)
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.
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])
)
)
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.
Welcome to the forum.
Here's how to ask your question:
https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Get-Your-Question-Answered-Qu...
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.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |