I spent around 5 hours today trying to figure out how to do a waterfall chart comparing previous weeks to each other. I read so many blogs, articles and forums. NO ONE was addressing the same issue I was referring to, nor had a solution. THANK GOD I found you! So simple! you saved me!
@CurbalEN5 жыл бұрын
Music to my ears!! ;) /Ruth
@MrToxiclaughter3 жыл бұрын
You've helped me so much these last months, I always recommend people to watch your channel if they want to learn about PBI. God bless you
@CurbalEN3 жыл бұрын
Thanks!!
@christianrodriguez46174 жыл бұрын
Thank you very much!!! You have no idea how easy is to understand everything with your videos!
@CurbalEN4 жыл бұрын
Music to my ears!!
@oliverbuckley51215 жыл бұрын
Thank you Ruth. I like to show the week as a weekend date rather than a week number so that it’s clearer for the user. To calculate the same week last year, subtract 364 days.
@CurbalEN5 жыл бұрын
Thanks for sharing Oliver! /Ruth
@lunaplanet124 жыл бұрын
This is very helpful. It solved my problem. And thank you so much for explaining in such an easy way to follow and understand. I appreciate the way you explained what each every part of the formula does and why a certain part doesn’t work and how to fix it. I learned a lot more about Dax from that. Shout out to you!
@TheTushar2319903 жыл бұрын
Thank you son much for this video. 🙏 you have been so helpful. God bless you. Keep on posting power bi videos...
@marasamrs71034 жыл бұрын
Thank you. You just saved my wknd in 9:30 mins
@CurbalEN4 жыл бұрын
🥳
@ravindrapinapaka65823 жыл бұрын
Nice explanation, good job Ruth
@Minifini44 жыл бұрын
Thanks a lot! Super helpful! Any suggestion on how to show totals for PW & SWPY measures?
@garimakumar56285 жыл бұрын
Thanks, Ruth! You make it look so simple :) Keep up the good work!!
@CurbalEN5 жыл бұрын
Sometimes it is :) /Ruth
@k07088703 жыл бұрын
Great simple explanation as always! Thankyou :)
@CurbalEN3 жыл бұрын
☺️☺️
@jaypillay83803 жыл бұрын
Always such a help, making learning easy!
@CurbalEN3 жыл бұрын
Yay!!
@AshikKhan5 жыл бұрын
Hi Ruth, You create magics..... That was awesome, I will try the same...thanks
@CurbalEN5 жыл бұрын
Thanks! DAX is magical, once you start cracking the code :) /Ruth
@agentcheesecake4 жыл бұрын
thank you very much. you save my life as usual :)
@CurbalEN4 жыл бұрын
At your service :)
@implementedgmbh5 жыл бұрын
Great Explanations! Thanks Ruth!
@CurbalEN5 жыл бұрын
Thanks again :) /Ruth
@alialhadikobeissy48634 жыл бұрын
BIG THANKS!
@CurbalEN4 жыл бұрын
You welcome!
@fbseugvfusbfkj3 жыл бұрын
First of all thanks for sharing your knowleadge, i have a doubt what happen with the last week of december vs first day january , I tried this method but the code doesn't do the calculation
@javierguerrero92535 жыл бұрын
Very good video Thank you so much for sharing it!
@CurbalEN5 жыл бұрын
Thanks for the feedback!! /Ruth
@enriquedominguez97095 жыл бұрын
Clear Explanation, Thank you Ruth!
@CurbalEN5 жыл бұрын
Thanks Enrique! /Ruth
@MelissaCornfield4 жыл бұрын
Thank you so much! this helped so much.
@CurbalEN4 жыл бұрын
Yey!! 🥳🥳
@entstuff3814 жыл бұрын
It is solved my problem.. thanks Ruth :)
@entstuff3814 жыл бұрын
Every time you like my reply and I am feeling very lucky :)
@CurbalEN4 жыл бұрын
Same here when my works helps you! Stay safe now:)
@654192794 жыл бұрын
Hi, congrats for the explanation, it is very good. The formula DAX in fact works, however i would like to show the total of column, i realized that it is not summarizing, could you help about it? Thank you.
@danmota834 жыл бұрын
It was really, really helpfull. Thanks a lot!
@CurbalEN4 жыл бұрын
🥳🥳
@jochendecraene55194 жыл бұрын
Thanks a lot Ruth, this helped me out, again ;-)
@CurbalEN4 жыл бұрын
You’re welcome 😊 /Ruth
@wwelover2473 жыл бұрын
Good stuff...what is the difference doing it this way vs using SAMEPERIODLASTYEAR? I have had a hard time getting the same week last year calc to work until I saw this.
@miragliag3 жыл бұрын
Hi Ruth, On the Measure you built SameWeek Last Year there is not Total showing in the Table. Is there a Trick how to modifiy DAX that also it shows a total of this measure? Thanks for your thoughts in advance!
@shoaibrehman99882 жыл бұрын
Hi can you calculate weekly sales by dax rather then drag and drop in table/matrix
@mukeshpanchal57623 жыл бұрын
This is great video. Quick question : I have week starting date in the table (Week starting with sunday). I want to skip every other week starting date and display in the chart . How do i add filter that?
@Chuchoman213 жыл бұрын
Hello, if I want to filter by a specific product that I have in my data source, how can i make the DAX code for this?
@RehanShaikh-ip9hh3 жыл бұрын
Hi Ruth, How to make table for only 7 days of current week & PYSW...
@Daria_Katunina8 ай бұрын
Thanks for this video, but I see problem showing totals, so I cannot use this solution in KPI´s. Maybe you can give a hint how to solve this problem ?
@RobertoStaltari5 жыл бұрын
Easy...after Ruth's video! Thanks! :)
@CurbalEN5 жыл бұрын
😂😂 Thanks Roberto! And have a great weekend :) /Ruth
5 жыл бұрын
So helpful! 👏🏻 👏🏻 👏🏻 👏🏻
@CurbalEN5 жыл бұрын
Thanks!!! 😊 /Ruth
@abdelrahmanabdou89055 жыл бұрын
Hi Ruth, Thanks for the video! I'm trying to solve a problem where I need to extract the total sales per calendar date where it is for the same week and same weekday. So for example for the year 2020, the 1st of January is the Wednesday of the first week, and if I need to compare it to the same day in 2019, I would be comparing it to the 2nd of January 2019 as it is also the Wednesday of the 1st week. My weeks are Sunday to Saturday. If you can help me out with that problem and create a video about it, It would be much appreciated, and I believe it would be a good compliment to this video as well! Thanks again, and keep up the great work!
@abdelrahmanabdou89055 жыл бұрын
Hi Ruth. I managed to Figure it out! I still think it would be a good idea for a video. Thanks!
@ybarsabal3 жыл бұрын
Ok, this makes sense. BUT what if you want to allow the user to filter/slice for one or more dimensions?
@mshparber5 жыл бұрын
First - like, then - watch!
@CurbalEN5 жыл бұрын
😂😂, that made my day, thanks! /Ruth
@HT_Peace_be_with_you4 жыл бұрын
Thanks a lot, I have one question how to put week one and week two records in one
@hernandiazdelcastillof82234 жыл бұрын
Thanks Ruth, this was very Helpful, it Has worked. I have a question you might help me. Once I have those measures I have created a Line chart where I want to show the last 10 weeks and a "Parallel" line with the data points from Las year. However in order to see those data points from last year I cant Unfiltered those periods, therefore I would have them in the left of the graph and in parallel with latest weeks data. How can I solve it?
@chrisa82035 жыл бұрын
Hi Ruth! Is it possible to do average of past 53 weeks?
@leonelalegria77874 жыл бұрын
Hello! Great vídeo! How can I make a Calculate (with average, for exemple) for the last week? Thanks!
@pl41952 жыл бұрын
I have one question. I make one sales report everyone with one excel as data source. How can I save all these weekly report in the same power BI report so I could look back previous report by clicking the filter.
@TheTushar2319903 жыл бұрын
Can you please tell me if I can create dynamic wtd with this. If yes how? It's quite urgent I am on my deadline.
@fegaru5 жыл бұрын
Hi! Why the New Measure doesnt summarise? In your example "Sales" has his total, but "Sales PW" doesnt. Thanks!
@nseworld55214 жыл бұрын
Sometimes i wanna see formulas, wich Power BI uses to calculate current week sales : how can i calculate total sales of the max week? ( current week/ or the last week in table "sales")
@jorgeldv86614 жыл бұрын
Hola Ruth, desde el confinamiento, he mirado mucho tus videos, son geniales. En este, en concreto, he intentado solucionar lo de los totales en blanco con: IF(HASONEVALUE('Calendar'[Week Number]);CALCULATE([Uds.];FILTER(ALL('Calendar');'Calendar'[Week Number]=IF(HASONEVALUE('Calendar'[Week Number]);VALUES('Calendar'[Week Number]);0) && 'Calendar'[Year]=IF(HASONEVALUE('Calendar'[Year]);VALUES('Calendar'[Year]);0)-1));CALCULATE([Uds.];DATEADD('Calendar'[Date];-1;YEAR))) pero no calcula bien los totales. Lo hago desde el power pivot, por eso utilizo if(hasonevalue... Quizás falte algún filtro más. Enhorabuena por todo tu esfuerzo y el trabajo que haces...!!!
@jorgeldv86614 жыл бұрын
Perdona, el criterio de las fechas es distinto, por eso el resultado, da distinto.... :((((
@luuk96595 жыл бұрын
Thanks!
@CurbalEN5 жыл бұрын
You welcome! /Ruth
@Ajuneja994 жыл бұрын
Thanks for the video Ruth. I was trying to implement this but it won't work for the 1st week of the year, correct me if I'm wrong. Thanks
@josecrespo66304 жыл бұрын
You can find the solución hete: kzbin.info/www/bejne/oJTPiKF3bNV4rLs
@siddheshamrutkar86844 жыл бұрын
Hello Ruth, it was nice explaination but was having one concern lets say if the week number for this year 2020 is 1 and same period last year also 1 that case it will substract and we will get 0 and then the sales value will be blank? So how to handle those situation in such cases. I hope you understand.
@andrecavasotero62345 жыл бұрын
Time intelligence in DAX always surprises me.
@CurbalEN5 жыл бұрын
DAX always surprises me ;) /Ruth
@Hunk8295 жыл бұрын
hi Ruth that was awesome, but what happens if somebody wants to see sales LW for the 1st week. Ideally it should be 52nd week of the last year... right? but with your measure it'll be blank
@CurbalEN5 жыл бұрын
The purpose of the video was to explain weekly calculations, you can easily adjust the measure to account for the year shift. /Rurh
@toshiehabu11024 жыл бұрын
Thanks Ruth for all your tips. I try to copy what you do in the video. But the previous week's value shows exactly the same as the current week. What wrong with me! No of 'Value' is the moment of time number therefore it should not be summarised. But to be able to put the Value into this DAX example, I added 'SUM'. Sales PW = CALCULATE([Vale Mesure for cal], FILTER(ALL('Dates'), 'Dates'[Year]=SELECTEDVALUE('Dates'[Year])&& 'Dates'[Week No] = SELECTEDVALUE('Dates'[Week No])-1) ) Thanks very much
@bijilashobanabalakrishnan77183 жыл бұрын
Hi Habu, I am facing the same issue. How did you resolve it? Could you please help me?
@stephenbrincat71245 жыл бұрын
Thanks Ruth, One question, if you can help? I receive the data only monthly basis (ex. I currently have till March 2019) when I do this measure I'm getting data till wk 17/2018 and wks 14-19/2019 are blank. since I don't have the data yet, is there a way to filter SWLY only to end March? Thanks and happy weekend.
@CurbalEN5 жыл бұрын
Yes, everything is possible with DAX ;) Could you post on the power bi community to get detailed help!? Thanks and happy Friday! /Ruth
@davidcadman35625 жыл бұрын
Hi. Great, though does PW work in the case of Wk 1? To me it seems the criteria would be Wk No -1 and the year to filter should be selected Year -1.
@CurbalEN5 жыл бұрын
If Week no =1 then 52 else my expression. Have a nice weekend :) /Rutg
@jaimeildefonsosegurapena73285 жыл бұрын
@@CurbalEN Ruth, years can have 53 or even 54 weeks (leap years starting on Sunday), therefore I think you'll need to "calculate" the last week of previous year.
@CurbalEN5 жыл бұрын
True, there are a lot of IFS when creating calendars ;) /Ruth
@soy34mb5 жыл бұрын
Hola Ruth, muy buen video, muchas gracias. Una sugerencia, creo que sería bueno que cambies el micrófono, ya que se escucha muy bajito el volumen :).
@CurbalEN5 жыл бұрын
Gracias Jimmy. En que PC ves los vídeos? /Ruth
@soy34mb5 жыл бұрын
Para ser honesto, los trato de ver en el transcurso de 1 hora q tengo de casa al trabajo, y cuando pongo el celular en altavoz casi no se escucha y es algo que no me pasa con otros videos que veo durante ese mismo transcurso.
@CurbalEN5 жыл бұрын
Ah, es en el móvil? Un Android? En mi móvil se oye bien. Te pregunto para poder reproducir el error. /Ruth
@soy34mb5 жыл бұрын
Así es, un Android, el Honor Play, pero como te digo, con otros videos no me pasa, te recomendaría que escuches 1 video a todo volumen y luego uno de los tuyos a todo volumen para que notes la diferencia.
@CurbalEN5 жыл бұрын
Vale gracias :) /Ruth
@alejandrogonzalezbueno80445 жыл бұрын
Muy buen vídeo! Sería interesante que comentarás que esta formula que estás utilizando no te permite comparar la primera semana del año con la ultima del anterior, es decir, semana 1 1998 con semana 52 1997. ¿Podrías explicar como realizar esto con DAX? Muchas gracias!
@CurbalEN5 жыл бұрын
Con un if() se soluciona fácil verdad? /Ruth
@alejandrogonzalezbueno80445 жыл бұрын
@@CurbalEN podrías hacer un ejemplo o comentar cómo sería la fórmula? Muchas gracias!
@CurbalEN5 жыл бұрын
Si la semana es =1 entonces semana 52 sino ... la formula que escribi. /Ruth
@alejandrogonzalezbueno80445 жыл бұрын
@@CurbalENAhora lo entendí! Muchas gracias!
@CurbalEN5 жыл бұрын
Perfecto!! /Ruth
@peterg41304 жыл бұрын
What happens when you are in Week 1 and you want to see sales for previous week (in this case it would be week 52, previous year)... What happens then? Because doing - 1 would equal to zero.
@CurbalEN4 жыл бұрын
Add an if condition for that.
@somily8005 жыл бұрын
I have one problem, with this i need to see year, month and week as a hierarchy and compare with the same period last year at the level of year, month and week
@fegaru5 жыл бұрын
Hello!!! Please help me!! I´m using PowerPivot Excel, and for some reason "SelectedValue" doesnt exist. Can you tell me how can I do this in Excel? Thank you very much!!!
@CurbalEN5 жыл бұрын
Hi, SELECTEDVALUE is just syntax sugar for IF ( HASONEVALUE ( Table[column] ), VALUES ( Table[column] ) ) :) /Ruth
@fegaru5 жыл бұрын
@@CurbalEN Great! Thank you very much!!!
@negisaab743473 жыл бұрын
It doesn't not give previous week sales for week 1
@jimmyni19835 жыл бұрын
Hi @Ruth. First thank you for this amazing tutorial. Now, maybe I'm doing something wrong, but I cannot see file 124: Weekly time intelligence in Power BI in your DAX Fridays Drive curbal.synology.me:5000/d/f/433570902335034553. Is this the correct place to find it? Thanks again and nice weekend!
@CurbalEN5 жыл бұрын
Oh, no! Did I forget? Sorry, I will upload it tomorrow. /Ruth
@jimmyni19835 жыл бұрын
Curbal NP, @Ruth. I’ll wait then. Thank you.
@CurbalEN5 жыл бұрын
I am sure I uploaded it, but I am guessing to the wrong server. Upgrading my infrastructure at the moment... /Ruth
@jimmyni19835 жыл бұрын
@@CurbalEN Relax @Ruth. Happy to give you a heads up then :) I'll download this file in specific to test something else. For example... When you created the measure SWLY I want to test the previous measure and apply SAMEPERIODLASTYEAR instead of using ... 'Calendar'[Year]=SELECTEDVALUE('Calendar'[Year]) -1 && ... I don't know if it'll work as I think it will. :)
@CurbalEN5 жыл бұрын
Uhhh , I see where you are going! ... tomorrow you will get it or reproduce it with any of other files if you can’t wait ;) /Ruth