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
norken20
Helper I
Helper I

Line Graph for Decreasing Values

Hi All,

 

I'm working on a powerBI stuff and looking to find a measure on how I can best do this in Power BI.

 

A line graph showing the decreased values over months. Sample table is below... I want to have the starting point at 500 (Total Sales) and line graph shows the decreasing value (Cumulative Sales). What is the best way to do this?

 

Month        Lost Sales       Cumulative Sales 

Sep             10                         490

Oct             10                         480

Nov              9                         471

Dec              9                          462 

Jan               8                          454

Feb              7                          447

Mar             7                          440

 

Total Sales 500

2 REPLIES 2
v-eachen-msft
Community Support
Community Support

Hi @norken20 , 

 

You could add an index column in the query editor to make data ordered by month. Then set your y-axis end to 500 in the "Y axis" option.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Thanks @v-eachen-msft. Yes your solution is correct.

 

Follow up questions is what if the scenario is like this....

 

My table is like this. Assume that Remaining YTD Sales column is not existing. What is the best way to create a graph shown below the table showing the Remaining YTD Sales and the Forecast Sales is not fixed instead it keeps updating every month.

Table.PNGGraph.PNG

 

Thanks!

 

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.