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
scorbin-j
Frequent Visitor

How to create a linearly increasing target line and cumulative total line on a graph?

I have a graph that uses my calendar table to looks forward each week (Sun-Sat) and displays production order time for certain work areas as the week goes by. We have a target for the areas to hit by the end of the week, so I would like to show a target line, i.e. a line that shows a linear increase to the target at the end of the week. Then I would like to have another line that shows the cumulative total of hours to show how on track we are to hit that target. 

 

So it would look something like this: 

scorbinj_0-1678144836266.png

 

How could I accomplish something like this? 

2 REPLIES 2
amitchandak
Super User
Super User

@scorbin-j , You can consider window function for that

Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: https://youtu.be/nxc_IWl-tTc

 

or date table

Running Total/ Cumulative: https://www.youtube.com/watch?v=h2wsO332LUo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=41

Looks like I don't have the Window Function in my version of Power BI, but the second suggestion worked to get a cumulative total. 

How would I go about getting that target line that I want to compare the cumulative total to? Could I leverage the same cumulative technique in some way? 

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.