Showing actuals and forecasts in the same chart with Power BI

  Рет қаралды 206,462

SQLBI

SQLBI

3 жыл бұрын

In budgeting reports, a common requirement is to show future sales forecast and actual sales volume on the same line chart. Learn how to achieve this goal using DAX.
Article and download: sql.bi/73386?aff=yt
How to learn DAX: www.sqlbi.com/guides/dax/?aff=yt
The definitive guide to DAX: www.sqlbi.com/books/the-defin...

Пікірлер: 111
@RACHIMSAJA
@RACHIMSAJA 3 жыл бұрын
It really makes more clear to me on when to use removefilters and keepfilter. Thanks for the great videos!🙏
@aatsw
@aatsw 3 жыл бұрын
These short videos are extremely helpful and time-efficient, much better than long videos. Please keep them coming. Thanks!
@thepitalstore1383
@thepitalstore1383 2 жыл бұрын
Plz....we need ur guide @Alberto_Ferrari
@CaCalegarii
@CaCalegarii 3 жыл бұрын
I am not used posting comments in videos, but you are simply the best! What an easy and straight forward explanation. Thank you!!!
@sarris2412
@sarris2412 3 жыл бұрын
Alberto, you are the best! No matter how much time it takes but I am confident that this channel will reach million subscribers without a doubt...Best wishes
@andresramirezortega6218
@andresramirezortega6218 Жыл бұрын
This is the only video on KZbin that is worth watching when it comes to Rolling Forecast! Thank you very much
@mehdihammadi6145
@mehdihammadi6145 3 жыл бұрын
Another great example on how to use remofilters and keepfilters. thank you for sharing
@evedickson2496
@evedickson2496 3 жыл бұрын
Brilliant... I've only watched a couple of videos but there are already making my life a lot easier... Thank you
@NaraMeerammaTrust
@NaraMeerammaTrust 3 жыл бұрын
Alberto, you are doing extraordinary job. No words to express our happiness. helping us a lot in our day to day work on Power BI. Once again thanks a lot. I am a big fan of you and your videos.
@SQLBI
@SQLBI 3 жыл бұрын
Our pleasure!
@siddheshamrutkar8684
@siddheshamrutkar8684 2 жыл бұрын
It's truly an amazing video.. Thinking in the similar and same direction but get stucked sometimes but you look very simple don't know how but definitely it requires sheer concentration, dedication, hard work and more importantly understanding of the requirement from business perspective.. Superb.. 🤟👍
@harryhai3116
@harryhai3116 3 жыл бұрын
Thank you. I have been learning from your book and more for 4 months. Very helpful. Merry Christmas.
@SQLBI
@SQLBI 3 жыл бұрын
Thanks - Happy Holidays!
@Bharath_PBI
@Bharath_PBI 3 жыл бұрын
Neat way to use remove filter and keep filter functions. Thank you 👍
@suki9860
@suki9860 2 жыл бұрын
Very useful, Alberto. Thanks very much!
@GentilOliveira
@GentilOliveira 3 жыл бұрын
Thanks for share a great content with us.
@judeLondon
@judeLondon 3 жыл бұрын
Great stuff again Alberto. Many thanks
@scotttokaryk3714
@scotttokaryk3714 3 жыл бұрын
Thank you. I need that this afternoon!
@gabrielmorais7312
@gabrielmorais7312 3 жыл бұрын
Awesome. Thanks Alberto!
@Granty707
@Granty707 Жыл бұрын
Brilliant video. Really helped me out at work 😀
@afdarizki
@afdarizki 9 ай бұрын
Awesome! Thanks a lot for the guidance!
@mehdifadhli6413
@mehdifadhli6413 3 жыл бұрын
Very helpful thank you Alberto!
@dchapman74055
@dchapman74055 Жыл бұрын
Got my formula to work but have to manually update the last date each month, but this definitely helped.
@felipesignorellireis7839
@felipesignorellireis7839 3 жыл бұрын
from Brazil. Great video.
@aryansinanan9878
@aryansinanan9878 3 жыл бұрын
Great stuff as per usual. Best Christmas present :).
@borismario
@borismario 2 жыл бұрын
Amazing ! I learn too much with the DAX formulas shown.
@RakeshSaha1705
@RakeshSaha1705 14 күн бұрын
Nice and super explaining.
@NoShadowOfDoubt1
@NoShadowOfDoubt1 3 жыл бұрын
Beautiful, thank you.
@suziearnold7585
@suziearnold7585 2 жыл бұрын
This is a great video. A scenario I have been trying to solve is when we reforecast each month but do not want to over ride prior months data so we can tell- are we getting better at forecasting ?
@gilbertosegoviano7701
@gilbertosegoviano7701 2 жыл бұрын
You are amazing, thanks for sharing
@VladMZ
@VladMZ 3 жыл бұрын
Extremely useful!
@gabriellegall8278
@gabriellegall8278 2 жыл бұрын
Thanks for the video ! Very insightful What if we want to have 2 measures, e.g. if we want to show the forecast in dotted line and the sales in a solid line ? Should I just split the combined measure into two measures using IF ? or if there a better solution
@vilmarsantos3419
@vilmarsantos3419 3 жыл бұрын
Conteúdo sempre da melhor qualidade. Obrigado por partilhar
@ymohamed3154
@ymohamed3154 Жыл бұрын
Great video. Can you please make us a video of how you calculated the forecast. Thanks
@anuragbawankar685
@anuragbawankar685 3 жыл бұрын
great content.... Thanks a lot !
@oricchannel2811
@oricchannel2811 3 жыл бұрын
Thanks for the christmas gift !
@Milhouse77BS
@Milhouse77BS 3 жыл бұрын
Thank you. Just wondering how to do this yesterday, after trying to add a What If measure to create a forecast amount.
@ekanayake1
@ekanayake1 2 жыл бұрын
Hi Alberto. Great video. In the same example what would be the best way to have a note to say which are Actual Figures and which are forecast. Probably as a heading against the month. Thank you in advance.
@cucotorres
@cucotorres 2 жыл бұрын
Hi Alberto. Thanks for this video. But i have a doubt, which visual are you using? Because I'm using line chart and can't do that.
@BrunoSilva-nj7gy
@BrunoSilva-nj7gy 10 ай бұрын
Great video! Thank you for sharing your knowledge! I was wondering if it is possible to link it to a month/year slicer. The behaviour I need is; if I filter for Jun/2023 I would see actual sales from Jan to Jun 23 and Forecast from Jul to Dec 23. Is it possible, regardless the current date? Thank you in advance.
@travelkare
@travelkare 6 ай бұрын
Thanks a ton ! Alberto !
@PSModelling
@PSModelling 11 ай бұрын
This may not be exactly what you're looking for but the COALESCE function can merge two measures overriding any blanks with values from the other measure.
@aashisehrawat
@aashisehrawat 2 жыл бұрын
Amazing, can we also do this if I need to add legends in the line chart? For instance, showing revenue for 3 business units and highlighting forecasts by dotted lines?
@pietman1000
@pietman1000 2 жыл бұрын
This guy is a BI master
@wmfexcel
@wmfexcel 3 жыл бұрын
Thanks for the step by step demonstration. It helps a lot in understanding the filter context! :) Btw, shall the formula be 'Date[Date] '> LastDateWithSales so that last date of actual sales will not be included?
@SQLBI
@SQLBI 3 жыл бұрын
You're right, thanks for catching it! Indeed, it was already correct in the article and in the demo file you can download, it was a typo in the recording.
@Datanometrics
@Datanometrics Жыл бұрын
Noticed this, thanks for sharing
@mshparber
@mshparber 3 жыл бұрын
Excellent!!!
@CarlosEspinoza-me9oi
@CarlosEspinoza-me9oi 2 жыл бұрын
Amazing! Could it works for a daily forecast? I need it for a current month daily, but some different. Example the 1st day (mon, tue, wed...etc) of current month versus the 1st day (mon, tue, wed...ect) from the month last year. Ex: Thu 01, Jul 2021 vs Thu 02, Jul 2020; Fri 02 Jul 2021 vs Fri 03 Jul 2020 and so on.
@shatakshiagrawal3062
@shatakshiagrawal3062 3 жыл бұрын
Thank you so much
@zeisslaimen1
@zeisslaimen1 3 жыл бұрын
merry christmas, SQLBI guys! take good rest, relax :)
@asn85uk
@asn85uk Жыл бұрын
Ola Senyor, where you are getting forecast from ? From a planning tool or there is a way to do it in power bi ?
@yashjoshi9083
@yashjoshi9083 3 жыл бұрын
WONDERFUL !!!
@gargierawatt
@gargierawatt 4 ай бұрын
Great video however can someone help me out explain how did the remaining forecast number for Aug came up to what it shows on the screen Many thanks
@pthapa55
@pthapa55 7 ай бұрын
Can you please share how you calculated the Forecast? Thank you!
@ck2610
@ck2610 25 күн бұрын
how can ich calculate the forecast total sum for the last Actual Sales Period?
@marcnichols164
@marcnichols164 Жыл бұрын
What do you do if you do not have the forecast, how do you calculate the measure?
@wexwexexort
@wexwexexort 2 жыл бұрын
Nice trick!
@riazuddin7493
@riazuddin7493 3 жыл бұрын
I have a column in my table name reason for leaving and based on that I want to add another column which is Volunteer attrition or Involunteer attrition i.e. if reason for leaving for an employee appears as Retired then the new column should show Involunteer attrition whereas for resignation it should show as volunteer attrition. Can you help me add this column please? Also how can I calculate the percentage of volunteer and involunteer attrition based on the total attrition for the whole year which is 1157.
@giri41
@giri41 3 жыл бұрын
Please do a video on how to calculate top Quartile and bottom Quartile performance
@oconnorra
@oconnorra Жыл бұрын
Thank you so much for explaining so clearly! I have a similar but different scenario with targets and actuals, but no date! Just an index. if i attempt this, i get teh first part right, but not the second: Remaining Expected Steps = VAR LastLegalStep = CALCULATE( MAX( FactFiles[LegalSubStepIndex] ), FILTER( DimCurrentStep, DimCurrentStep[Legal Step] = "Current")) VAR RemainingLegalSteps = CALCULATE( [Expected Days], KEEPFILTERS(FactFiles[LegalSubStepIndex] >= LastLegalStep) ) RETURN RemainingLegalSteps Can you point me in the right direction?
@sbn4862
@sbn4862 2 жыл бұрын
Very best method, i tried did such chardboard with IF functions, Thank you!!! LastDateWithSales is varable and if even I use All modificator in varable it owerwrites all filter contexts whatever?
@totvabe1
@totvabe1 3 жыл бұрын
Great!
@rosev.7778
@rosev.7778 10 ай бұрын
What is the Dax for forecast in the var remainingforecast
@anuragbawankar685
@anuragbawankar685 3 жыл бұрын
Why am I getting values in actual sales after the max date i.e. Today date ?????? (in my project) what could be the reason?
@lionels839
@lionels839 Жыл бұрын
Hello Alberto. I love what you do. One dumb question please: my power pivot version does not include REVOMEFILTERS. How can I replace it in your book DAX Patterns?
@SQLBI
@SQLBI Жыл бұрын
You can use ALL instead of REMOVEFILTERS. The samples are available also for Excel and they use that.
@BbabbittGolf
@BbabbittGolf 5 ай бұрын
Great video! I would love to see the measure used to create the forecast!
@SQLBI
@SQLBI 5 ай бұрын
Download the sample file following the instructions in the description. However, the forecast here is just fictitious, it's not the value of the article!
@BbabbittGolf
@BbabbittGolf 5 ай бұрын
Thank you! Also, how would your remaining forecast calculation change if the sales table had two dates to work off of - sales date & order date for example? @@SQLBI
@vedikatrivedi2019
@vedikatrivedi2019 Жыл бұрын
Hello, How do I make the forecast column ?
@narendrakumar-im7en
@narendrakumar-im7en 10 ай бұрын
Can we add a legend as well to this graph?
@shrikantthakur7127
@shrikantthakur7127 2 жыл бұрын
Hi How to create Forecast DAX can you share
@md.mohiuddinchowdhury8021
@md.mohiuddinchowdhury8021 2 ай бұрын
what is the DAX for forecasting?
@3danim8r1
@3danim8r1 3 жыл бұрын
Great ....
@vineetyoutubr5
@vineetyoutubr5 2 жыл бұрын
You are god of DAX 🙏🏿
@RTSWatson
@RTSWatson 3 жыл бұрын
Thank you - I don't understand how the budget table knows to split by the relevant month as it does not have a month field.
@SQLBI
@SQLBI 3 жыл бұрын
The Forecast measure performs a dynamic allocation by month based on sales of the previous year. That part is not described neither in the video nor in the article. You can find the formula in the sample file you can download from the article page. A more complete description of the allocation technique is available here: www.daxpatterns.com/budget/
@jameszhou162
@jameszhou162 3 жыл бұрын
great example. but in majority of cases, forecast is done on Monthly level rather on daily. so i guess it would be only possible to use day extrapolation to combine remaining sale forecast to actual.
@SQLBI
@SQLBI 3 жыл бұрын
You can do a dynamic allocation as explained here: www.daxpatterns.com/budget/
@userasdf1546
@userasdf1546 Жыл бұрын
I wish you would tell us what hotkeys you are pressing at 7:00. I can't get my forecast column to show up :(
@userasdf1546
@userasdf1546 Жыл бұрын
Nevermind. I had to create a measure and call the measure instead of the column.
@user-ed6wl2bm5g
@user-ed6wl2bm5g 9 ай бұрын
Can you please explain [Forecast] measure, without this how can I write RF measure. please explain it.
@sekousoro6309
@sekousoro6309 3 жыл бұрын
Great
@omardaraz1027
@omardaraz1027 Жыл бұрын
hi Alberto, i think it would be not good to ask but still want to know how u determind or create forecast column. i have sale data so how can i say this would be my forecast. please help
@omardaraz1027
@omardaraz1027 Жыл бұрын
any update!!!
@ashishmohan4707
@ashishmohan4707 3 жыл бұрын
Hi Alberto Mary christmas and very very happy return of the day wish you a very happy birthday.
@clovissantiago2195
@clovissantiago2195 3 жыл бұрын
How can i get the original measure forecast to calculate and combine the values after? Someone help me? Thanks.
@nicholaskeogh1121
@nicholaskeogh1121 Жыл бұрын
did you ever figure this out? seems like its a pivotal measure for this to work but i can't find where he's created it.
@jurgenguns1925
@jurgenguns1925 3 жыл бұрын
Hi Alberto, you can explain these trainings as the best! But how to handle if the last date of Sales is always the month? Within my data of sales I have only month period...
@SQLBI
@SQLBI 3 жыл бұрын
It should work the same for the future months...
@jurgenguns1925
@jurgenguns1925 3 жыл бұрын
@@SQLBI Yes, for future months result is the same however, his calculation for last month sales will always be complete month and not day of date. So he includes the totale of running month in the forecast.
@jurgenguns1925
@jurgenguns1925 3 жыл бұрын
In practice it should measure the diff of the first forecast month and the actual sales of that month to have the remaining value of the running month.
@SQLBI
@SQLBI 3 жыл бұрын
But if the date is always at the end of the month, how is it possible to know what are the dates covered by the data available?
@jurgenguns1925
@jurgenguns1925 3 жыл бұрын
@@SQLBI because I'll receive daily new data report with new sales figures and they are collected by period. (Example period 202101)
@olemew
@olemew Жыл бұрын
In this use case, goal is to go from 2:10 to 2:25 visualization.
@dariuszspiewak5624
@dariuszspiewak5624 3 жыл бұрын
Alberto... one person has given you a thumbs-down. They must have had a bad day, I guess :) Thanks for the video.
@roxanarodriguez1828
@roxanarodriguez1828 3 жыл бұрын
Hi I dont know if someone can help me, I did exactly the same, I even download the source and duplicate every single measure but when I put total sales it puts the same amount but when I have filter CY 2010 and put the forecast measure it just show blank, when I remove the filter it shows values, why could that happen?¡
@SQLBI
@SQLBI 3 жыл бұрын
Compare your file with the file you can download in the related article (see video description).
@semihfndkc6993
@semihfndkc6993 Жыл бұрын
Hi, how have you calculated forecast column?
@victorsoto9075
@victorsoto9075 Жыл бұрын
that should be the whole point of the video
@ymohamed3154
@ymohamed3154 Жыл бұрын
I am also interested
@droctowiz5968
@droctowiz5968 2 жыл бұрын
I understood the remove and keep filters, but why did the expression override the contextual filters in the first place ? Is it because of the removefilters in the expression of the variable ?
@amarnadhgunakala2901
@amarnadhgunakala2901 3 жыл бұрын
New content
3 жыл бұрын
Hey its Xmas. Please do not post Videos in the silent time. Even that all are usually great! Spend time with your family and relax!
@SHAUNVINDA
@SHAUNVINDA 4 ай бұрын
super mario
DAX Filter Context Basics [Full Course]
1:26:25
Pragmatic Works
Рет қаралды 34 М.
Use scatterplots to find details in Power BI reports
25:49
We Got Expelled From Scholl After This...
00:10
Jojo Sim
Рет қаралды 52 МЛН
Василиса наняла личного массажиста 😂 #shorts
00:22
Денис Кукояка
Рет қаралды 8 МЛН
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 3 МЛН
Forecasting Logic in Power BI with DAX
10:23
Enterprise DNA
Рет қаралды 111 М.
Budgeting with Power BI
1:09:12
SQLBI
Рет қаралды 90 М.
Targets vs Actuals Chart in Power BI
13:40
Goodly
Рет қаралды 95 М.
Forecasting in Excel Tutorial
11:23
Kevin Stratvert
Рет қаралды 274 М.
Actual v/s Rolling Budget in Power BI
19:23
Goodly
Рет қаралды 10 М.
How To Create A Forecast Model In Power BI With Python
12:00
Enterprise DNA
Рет қаралды 32 М.
i like you subscriber ♥️♥️ #trending #iphone #apple #iphonefold
0:14
Samsung S24 Ultra professional shooting kit #shorts
0:12
Photographer Army
Рет қаралды 25 МЛН
Настоящий детектор , который нужен каждому!
0:16
Ender Пересказы
Рет қаралды 436 М.