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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
brayden1028
New Member

Year over year target by month with static baseline

Hi,

 

I have built a dashboard tracking savings values vs. a 2022 basline.

 

The problem I am running into is that the savings goal is aimed at saving 10% by 2024. So the goals are 5% savings in 2023 with 10% overall savings as the goal for 2024. I am not very experienced with DAX so this may be a simple solution but I cannot get the 2024 target to basically build off of the 2023 target, therefore making the target cumulative.

 

As seen below the savings (Y-axis) are cumulative but once the year changes over to 2024 the target (black dashes)is not cumulative and therefore we see the drop in Jan 2024, though the final number in December 2024 is correct as it is what is needed to achieve the 10% by 2024.

brayden1028_0-1713465666358.png

Quick sketch of what I am trying to display(ignore target markers seen on previous image):

brayden1028_1-1713465883206.png

 

 

The current measure used to accomplish target being displayed (Hoping I can build off of this somehow):

brayden1028_2-1713465955549.png

 

 

Again, not super experienced at DAX so apologies for likely overcomplicating this

 

Thanks in advance!

 

 

 

2 ACCEPTED SOLUTIONS

Hi @brayden1028 ,

 

Please check the attached power query steps before confirming that the results are what you expect.

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

Hi! 

 

I have had a colleague solve this for me, I do appreciate the time you have taken on this trying to assist.

 

I can post the solution if that is helpful

View solution in original post

10 REPLIES 10
v-tianyich-msft
Community Support
Community Support

Hi @brayden1028 ,

 

Can you show the sample data and what you want to expect?

 

Best regards,
Community Support Team_ Scott Chang

Hi, 

 

The issue is the data is somewhat confidential, generally what I am looking to calculate is 24 months accumulating target

This would use the baseline of about 5.5 million, and accumulate to 5% of this by the end of 2023 (275,000) then continue building off of that until we end at the 10% goal by the end of 2024 (550,000)

 

I could do this with a static Excel sheet but I am trying to do it with Dax as I want to have every location this data is associated with able to filter and look at their specific target. Having the target static from a global level shows progress but removes filterability.

 

Here is a general overview of what I am looking for listed out:

Month Target 
Jan-23     22,916.66
Feb-23     45,833.32
Mar-23     68,749.98
Apr-23     91,666.64
May-23   114,583.30
Jun-23   137,499.96
Jul-23   160,416.62
Aug-23   183,333.28
Sep-23   206,249.94
Oct-23   229,116.60
Nov-23   252,083.26
Dec-23   274,999.92
Jan-24   297,916.58
Feb-24   320,833.24
Mar-24   343,794.90
Apr-24   366,666.56
May-24   389,583.22
Jun-24   412,499.88
Jul-24   435,416.54
Aug-24   458,333.20
Sep-24   481,249.86
Oct-24   504,166.52
Nov-24   527,083.18
Dec-24   550,000.00

Hi @brayden1028 ,

 

Sorry for late reply.Is this what you expected?

vtianyichmsft_0-1713752575473.png

Measure = DIVIDE(MAX('Table'[ Target ]),5500000)

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

Hi, No worries!

Sadly I am not sure this will work as the "5,500,000" theoretical number is a sum of data pulled from around 350 buildings all working towards the same 10% target.

 

Because of this, each plant will have a different amount to save depending on how much they are contriubuting to the 5.5m total. 

 

So,

One location may have to save 50,000 to reach their 10% target while another location has to save 250,000 to reach their 10% target.

If this is something that cannot be solved by DAX, I may have to take some time and do a manual excel export and calculate the target for each location which is fine, but I was hoping there was a way to do this within PowerBi using DAX.

If it helps, I can make this Excel sheet mentioned to display exactly what I would want (using fake location names for confidentiality).

If this is the best way to get this solved, I don't mind taking the time.

Hi @brayden1028 ,

 

Please provide me with a few simple lines of data and I'll do my best for you.

 

Best regards,
Community Support Team_ Scott Chang

Hi, 

Please see the tables below for some data visualizing what I am trying to show 

 

The 2022 baseline is what is used to calculate the goals for both years, I am looking to have the 2024 target build off of the 2023 target in my graph as stated before, please refer to the prior picture that I drew on for reference.

 

 

2022 Baseline
 Jan-22Feb-22Mar-22Apr-22May-22Jun-22Jul-22Aug-22Sep-22Oct-22Nov-22Dec-22
LocationsConsumptionConsumptionConsumptionConsumptionConsumptionConsumptionConsumptionConsumptionConsumptionConsumptionConsumptionConsumption
Location 1242.04246.02231.04286.53238.47232.36239.78238.46206.75292.34295.69280.70
Location 216431.2915530.9414678.9713697.6910978.8310810.079147.6315769.5811158.2912692.5014661.3314509.43
Location 3149.73147.16144.42136.55144.44144.10153.32142.23121.98117.65113.32104.81
Location 43971.264236.974065.313810.602848.922660.632575.442443.592976.192751.252865.873260.07
Location 529932.1226556.9226160.2420054.4816139.7712594.0512414.3413834.4815109.9319002.1221914.8324301.39
TOTALS50726.4446718.0145279.9837985.8530350.4426441.2024530.5132428.3429573.1334855.8739851.0342456.40
             
2023 Savings needed to achieve 5% Goal
 Jan-23Feb-23Mar-23Apr-23May-23Jun-23Jul-23Aug-23Sep-23Oct-23Nov-23Dec-23
LocationsReduction GoalReduction GoalReduction GoalReduction GoalReduction GoalReduction GoalReduction GoalReduction GoalReduction GoalReduction GoalReduction GoalReduction Goal
Location 112.1012.3011.5514.3311.9211.6211.9911.9210.3414.6214.7814.03
Location 2821.56776.55733.95684.88548.94540.50457.38788.48557.91634.62733.07725.47
Location 37.497.367.226.837.227.217.677.116.105.885.675.24
Location 4198.56211.85203.27190.53142.45133.03128.77122.18148.81137.56143.29163.00
Location 51496.611327.851308.011002.72806.99629.70620.72691.72755.50950.111095.741215.07
TOTALS2536.322335.902264.001899.291517.521322.061226.531621.421478.661742.791992.552122.82
             
2023 + 2024 Savings needed to achieve 10% Goal 
 Jan-24Feb-24Mar-24Apr-24May-24Jun-24Jul-24Aug-24Sep-24Oct-24Nov-24Dec-24
LocationsReduction GoalReduction GoalReduction GoalReduction GoalReduction GoalReduction GoalReduction GoalReduction GoalReduction GoalReduction GoalReduction GoalReduction Goal
Location 124.2024.6023.1028.6523.8523.2423.9823.8520.6729.2329.5728.07
Location 21643.131553.091467.901369.771097.881081.01914.761576.961115.831269.251466.131450.94
Location 314.9714.7214.4413.6614.4414.4115.3314.2212.2011.7711.3310.48
Location 4397.13423.70406.53381.06284.89266.06257.54244.36297.62275.13286.59326.01
Location 52993.212655.692616.022005.451613.981259.401241.431383.451510.991900.212191.482430.14
TOTALS5072.644671.804528.003798.593035.042644.122453.053242.832957.313485.593985.104245.64

Hi @brayden1028 ,

 

Please check the attached power query steps before confirming that the results are what you expect.

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

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

Hi! 

 

I have had a colleague solve this for me, I do appreciate the time you have taken on this trying to assist.

 

I can post the solution if that is helpful

Hi! 

 

I have had a colleague solve this for me, I do appreciate the time you have taken on this trying to assist.

 

I can post the solution if that is helpful

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors