Forum Discussion
How do I create a trending downward chart?
Hello,
I have a table with monthly data and would like to plot it in a bar chart reducing the last value by 500 starting in 2024 April.
e.g.
Feb 24 = 5000
Mar 24 = 4000
Apr 24 = 4000-500 = 3500
May 24 = 3500-500 = 2000
Jun 24 = 2000-500 = 1500
and so on...
The following DAX reduces it only from March 2024. It does not go to April and May. I need it to reduce by 500 from the calculated April value and the May value is calculated from the April value and so on.
Do you have a calendar table for the X axis?
and so on...until when? Until it crosses the x axis?
7 Replies
- lbendlin
Super User
Do you have a calendar table for the X axis?
and so on...until when? Until it crosses the x axis?
- sw1331Regular Visitor
Can you please do a screenshot of the two tables?
Thank you.
- Ashish_Mathur
Super User
Hi,
Share the raw data from where you want to build that visual. Also, should the reduction start in April of every year and cary on up until March of the following year?
- sw1331Regular Visitor
Thank you for responding. Let me play around with the 'solution' that was provided. I'll share the dataset if needed if I get stuck in the next step.
Thank you.
- sw1331Regular Visitor
Hello Ashish - I am still struggling. Here is my data.
Date Product Units 1/2/2024 A 100 1/10/2024 B 200 1/11/2024 C 300 2/22/2024 A 78 2/21/2024 B 163 2/26/2024 C 254 3/22/2024 A 32 3/21/2024 B 40 3/26/2024 C 165 I need to reduce the Units value by say 26 units (this will be a variable) starting April 1, 2024. This needs to go on until May 31st. I want to know the value on May 31st. Since the reduction number is a variable, I can create a slider to see different scenarios.
Thank you again.
- Ashish_Mathur
Super User
the data that you have shared and explanation do not support each other. You mention May in the body of the message but there is no data of that month in the raw data. Share meaningful data and show the expected result.