No video

Show last 6 months based on user single slicer selection

  Рет қаралды 125,052

SQLBI

SQLBI

Күн бұрын

Пікірлер: 240
@dillonpettigrew3241
@dillonpettigrew3241 3 ай бұрын
Thank you. I love that you move through the example step-by-step to help us understand how the calculation works.
@jonathanvanderberg4096
@jonathanvanderberg4096 Жыл бұрын
This is the best solution for Rolling KPIs using a filter selection for month that I've seen. Thanks Alberto
@YagobaKopa
@YagobaKopa Жыл бұрын
What a Couple! Always start up looking everywhere and always end up in the Italian place. Thanks So Much.
@namangarg7023
@namangarg7023 23 күн бұрын
Sir u r god of SQLBI...tks for contributing towards your small learners like me..
@carlosaugustodelcastillona1105
@carlosaugustodelcastillona1105 2 жыл бұрын
I applied this solution using a Sparkline for a KPI Card. It's really helpful and useful for my company. Thanks Alberto!
@Moon_Rise6393
@Moon_Rise6393 Жыл бұрын
I was wondering from past 2 days everyone explained but not explained every single steps to perform. Thank God you save my time and i got the solution now. Thanks a ton!!
@davidjkyang
@davidjkyang Ай бұрын
Thank you for sharing in such a detailed step by step explanation. It is brilliant and it worked perfectly.
@Cellyzaan
@Cellyzaan 2 жыл бұрын
This video was incredibly useful! I was trying to figure out how to have a dynamic KPI visual that has a rolling 12 month graph based on date slicer selection and this did the trick. Thank you very much!
@christofferchamoun211
@christofferchamoun211 Жыл бұрын
How did you manage to Solve the rolling 12 sum? When you say rolling sum, do you mean the rolling sum for each month or does the rolling sum only for the months that are present in the visual? 😊
@preetamjawaria441
@preetamjawaria441 3 жыл бұрын
Damn !! Thank you very much. Thrilled to understand the reason behind every single step.
@rogeriodornellas2115
@rogeriodornellas2115 6 ай бұрын
This is a great solution! I'm using and it works very well, the only issue is if there is no value in a period, it will skip the month instead of showing 0, in a table the result is even worse with a missing month, but thank you anyway! 😎
@Grundraak
@Grundraak 6 ай бұрын
Grazzie Alberto, for insurance loss ratio reporting with premium and claims and a loss ratio % this is an amazing solution. i spent most of the past 2 months trying to build this with a slicer and then trying to set dates back etc. i have stopped chasing, and can start implementing !!
@lukesteen157
@lukesteen157 3 жыл бұрын
Genius solution. This saved me so much trial and error! Thank you, Thank you, Thank you!!!!!
@sumanth16782
@sumanth16782 3 жыл бұрын
WOW!! explained in such detail so the implementation is absolutely clear - AMAZING Alberto!
@MeirbhinOConaill
@MeirbhinOConaill 2 жыл бұрын
This is wonderful. We struggle with Current month reports as using dates will hide PriorMth on the first few days of the month, where business wants to see PM sales until the day after the first Sales day to CurrentM. I do with the a [LastDayWithSales] measure & a binary date table calculated column as a filter. But this UX requires to unfilter the binary [Current month] filter then choose a date range. Your solution here is fantastic. Thank you so much
@gonqq3140
@gonqq3140 3 жыл бұрын
Once again.. Brilliant. You and your channel were my 2021's best find and I don't think anything will top that. Thank you !
@abdulrehman56
@abdulrehman56 2 жыл бұрын
Awesome man ... you guys are simply Ninjas of Power BI
@damionc
@damionc 3 жыл бұрын
Wow. This solved my issue. Can I say WOW once again. You are the best.
@workstuff8771
@workstuff8771 2 жыл бұрын
Very grateful for this instructional video! It bugs me that PowerBI makes things that should seem so simple seem so complicated. In Tableau, things like this are accomplished in much less steps and with also very limited coding
@vincerocchi9083
@vincerocchi9083 Жыл бұрын
This is Fantstic Alberto!! Thank you for sharing! Very clear with excellent demonstration of steps and the (interim) results we should expect along the way. I have been looking for something similar (a 10 year rolling average) for a few weeks and you’ve answered a ton of my questions. I should be able to do what I need to now!!
@davidtawa8338
@davidtawa8338 3 жыл бұрын
Holy moly, thank you very much, you deserve more viewers, awesome content with amazing explanation!!
@siddheshamrutkar8684
@siddheshamrutkar8684 3 жыл бұрын
Superb.. I cracked it what I was looking for and it was for only month end dates.. Great One Alberto.. 🙏👏
@saharlatifi3510
@saharlatifi3510 Жыл бұрын
Always finding solutions here! Thank you Alberto!
@leonsommers4648
@leonsommers4648 3 жыл бұрын
Thanks very much Alberto / SQLBI. I've been wanting to solve this conundrum for ages and here it is. Thank you for your clear explanation
@PeterKontogeorgis
@PeterKontogeorgis 3 жыл бұрын
Your solutions are so elegant. Amazing work.
@ubonguttah
@ubonguttah 2 жыл бұрын
Nice one. Always a Joy to see you breakdown DAX in simple terms
@kejmil1992
@kejmil1992 2 жыл бұрын
You save my project at work! Thank you for this, well done!
@GGGMONEY555
@GGGMONEY555 7 ай бұрын
Thank you so much I've been looking for that for a loooong time and you are the first explaining it properly. Looks like i'm going to watch all your videos ;)
@johansantacruz6464
@johansantacruz6464 3 жыл бұрын
Awesome! Solutions to actual customer's requests.
@leo2life
@leo2life 3 жыл бұрын
Grazie mille per la tua spiegazione! As always, excellent! Greetings from Brazil!
@PowerEliteStudio
@PowerEliteStudio 3 жыл бұрын
Thank you very much Alberto, some time ago I had to solve this scenario, however, this approach is much better and more elegant Amazing
@stephenellis8554
@stephenellis8554 6 ай бұрын
This worked after checking out ~5 other solutions and made sense.
@mariammamporia5392
@mariammamporia5392 2 жыл бұрын
Thank you alberto, You literally saved me ! Keep the great work.
@kot23
@kot23 2 жыл бұрын
Excellent video, so intructional and well-explained. Filter context is examined deeply and the reason for each filter manipulation becomes clear. This pattern will be certainly used with some modifications, thank you for this vid!
@ashishmohan4707
@ashishmohan4707 3 жыл бұрын
Thank you Alberto, DAX Champion. :) This Channel helps me a lot. You are champion on DAX and post o through with your channel i am trying to get all your knowledge I have one query
@deepakgupta3192
@deepakgupta3192 3 жыл бұрын
Great Video , Great Explanation , love it . thank you to come online and sharing . love all your videos ...Love Dax
@2bquest
@2bquest 3 жыл бұрын
This is exactly what I needed in my current project. Thanks Very much.
@bostjanbrumec7174
@bostjanbrumec7174 2 жыл бұрын
Thank you Alberto. The same solution works for the new sparkline feature!
@sww5808
@sww5808 2 жыл бұрын
Fantastic, the explanation of filter context is great. Thanks!
@humayunshahzad9181
@humayunshahzad9181 Жыл бұрын
Incredibal .... Amazing Alberto.. Many thanks.. It helps alot in my project.
@onamissionteam9373
@onamissionteam9373 2 жыл бұрын
Best teacher ever
@khushbujaiswal6684
@khushbujaiswal6684 7 ай бұрын
This is great, thank you for your help.
@grytskokonstantin1272
@grytskokonstantin1272 Жыл бұрын
Incredibly useful. Thank you very much!
@ChrisSmithFW
@ChrisSmithFW Ай бұрын
Fantstic! Thank you.
@Mago_Legend
@Mago_Legend 4 ай бұрын
You’re amazing! Thank you.
@riteshkothari1647
@riteshkothari1647 8 күн бұрын
This is crazy good!
@GSMonkey
@GSMonkey 7 ай бұрын
Great! Thank you for the solution, chatgpt wasnt much help here, i guess its too complicated :D Did it with weeks instead. Now the next problem is finding out how to make a "year to selected week" with the same slicer, where the year can change depending on which year the week belongs to.
@GSMonkey
@GSMonkey 7 ай бұрын
Got it to work, if anyone should have the same need. Just an edit of the code from the video. Again thank you, would never have solved this alone. m__offeredYearToWeek = VAR RerefenceDate = MAX( 'Calendar'[date]) VAR FirstOfYear = DATE(MAX('Calendar'[weekBelongsToYear]),1,1) VAR NumberOfDays = INT(RerefenceDate - FirstOfYear)+1 VAR PreviousDates = DATESINPERIOD( 'Calendar previous'[date], RerefenceDate, -NumberOfDays, DAY ) VAR Result = CALCULATE( [m__callOffered], REMOVEFILTERS( 'Calendar'), KEEPFILTERS(PreviousDates), USERELATIONSHIP( 'Calendar'[date], 'Calendar previous'[date]) ) RETURN Result
@hakim4000
@hakim4000 2 жыл бұрын
Alberto as always you re a Dax Lord
@JayWay-tb8sw
@JayWay-tb8sw 2 ай бұрын
Thank you, thank you thank you.
@beginho2454
@beginho2454 3 жыл бұрын
Thank you Alberto, DAX Guru. :) This Channel helps me a lot.
@nareshkosuru1533
@nareshkosuru1533 7 ай бұрын
Glad I found this video and am a big follower of your videos and articles. In this video exercise, how to bring MoM and QoQ based on months or quarters displayed when period is selected by the user. I am getting MoM measures for every month column which is wrong. Only latest months or quarters to be considered. My fiscal period is in rows.
@hosseinmortazavi5547
@hosseinmortazavi5547 3 жыл бұрын
thanks for great video. one more simple solution is just create a column in date table that return 0,1 if date column is less than 6 month from selected date.
@SQLBI
@SQLBI 3 жыл бұрын
If you use a calculated column, it would be static, the user would have no way to select the starting point
@BjornLarsson-oh5nj
@BjornLarsson-oh5nj 3 ай бұрын
Very helpful! Thank you!
@vasudevpatil2309
@vasudevpatil2309 2 жыл бұрын
I am facing one challenge where I wanted to show the Current month value than Previous month value and then % change between these for multiple categorical variables, in columns in Table/Matrix visualization. I could get the last 2 months values using measure as you suggested above but then when I tried to get the % change in visual, it appeared for both of the months side by side and not after the 2 columns. I Want to create visuals like below e.g. Fund Category||Fund name||Nov2021||Oct2021||%change Next month it would automatically change to Fund Category||Fund name||Dec2021||Nov2021||%change
@erickknackstedt3131
@erickknackstedt3131 3 жыл бұрын
Need this for some custom tooltips. Thank you!
@bravucod
@bravucod 3 жыл бұрын
You make it look so easy!!!
@soniaseudie74
@soniaseudie74 Жыл бұрын
I love your videos! Such a good teacher! Thank you!
@user-ml5uj6zu8p
@user-ml5uj6zu8p Жыл бұрын
that's very helpful, thank you. HOWEVER. there's a big red warning flag you should mention, it caused me headaches : using group calculations not only REQUIRES you to not use automatic-measures on your visuals, or it will simply not work. But also, as soon as a group calculation is added to the model, automatic-calculations are no longer accessible for a new visual, requiring the user to ...... create a measure for every single data he wants to visualize !
@SQLBI
@SQLBI Жыл бұрын
It is mentioned in our trainings and articles! www.sqlbi.com/calculation-groups/
@Anculka96
@Anculka96 Ай бұрын
@@SQLBI Hello, are you aware of any other solution for showing last x months based on user single slicer selection, please? I do not use total, but amounts diveded per category and for that this solution by copying date table unfortunately does not work
@dennistephen5425
@dennistephen5425 Жыл бұрын
Really Helpful Sir.
@RobertoStaltari
@RobertoStaltari Жыл бұрын
Another milestone! Thanks!
@nataliiaiatsenko7779
@nataliiaiatsenko7779 2 жыл бұрын
Thank you very much! Your explanation is perfect. Exactly what I need.
@adrifersilva
@adrifersilva 8 ай бұрын
Fantastic, thank you!
@simomoforever
@simomoforever 2 жыл бұрын
It is great especially the filter part! Thank you!
@alrigotto
@alrigotto 2 жыл бұрын
Thank you!!! This is exactly what I was looking for =)
@enl3299
@enl3299 2 жыл бұрын
I used field parameters (Mth/Qtr/FY) on Category of waterfall chart, and the out-of-the-box experience is that it would not show 'waterfalls' from beginning up to the first data point set on the axis/category. Eg. When 'Qtr' is selected, chart will plot 4 data points on the axis, and then draw 3 sets of waterfalls between the 4 points (duh~). The first set of waterfall to depict the movements from beginning of period up to the first data point would NOT be shown, contrary to 'normal user expectation'. Certainly not a bug here but it is such a wet blanket to not have easy to implement dynamic axis parameter on the waterfall chart. Thankfully the technique here enabled adding a period dynamically to the front of whatever periods have being selected to serve as a 'beginning' axis point. Thus when user select a year, the measure would consider 1 additional period prior user's selection. For details sake, the measure i used was a balance-todate that accumulates cash movement to show a balance at the last day of selected month. Hopefully this comment helps someone struggling with the same issue, particularly with waterfall chart.
@cidnazareth
@cidnazareth Жыл бұрын
You saved me!! hahahaha Incredibly useful!!!!
@TafadzwaMundida
@TafadzwaMundida 5 ай бұрын
Informative as always. One question if you would be so kind, how should I modify the code to work with a previous year sales measure?
@s77lom49
@s77lom49 Жыл бұрын
Enjoy Dax !
@slimmammou893
@slimmammou893 2 жыл бұрын
Alberto you are my hero, One favor : how it is possible to put in the same chart the YTD value, the last 3 months, the last 6 WEEKS & the last WTD day by days.
@KrishnaKumarKundoly
@KrishnaKumarKundoly 3 жыл бұрын
Thanks Alberto. I was using sqljason's method for this purpose but it fails if we want to show values from 2 different tables. Your method works brilliantly. I used what-if parameter for the previous N months selection.
@lisashoff7777
@lisashoff7777 Жыл бұрын
amazing, worked perfectly
@willlinley9570
@willlinley9570 2 жыл бұрын
Thanks Alberto, really useful and helped a lot in one of my deliveries.
@ipeh1149
@ipeh1149 3 жыл бұрын
Thank you so much! You are truly a life saver :)
@samaguire1
@samaguire1 3 жыл бұрын
Very clever! Thanks for sharing.
@rohithkothaneth
@rohithkothaneth 10 ай бұрын
Awesome Alberto!! Thank you for explaining it so clearly and providing step by step explanation. If I want to show '0' for all the blank COUNTS across the last 12 months, is it possible? I tried to include COUNT('Cases'[Number]) + 0 also tried IF(ISBLANK('Cases'[Number]) ), 0, ('Cases'[Number])) in the CALCULATE section, but it is displaying all the months and not giving only for the last 12 months data set. It is not giving me the desired output.
@samdresiksamdresik
@samdresiksamdresik 7 ай бұрын
@rohithkothaneth Did you find a solution for this problem?
@justinwduff
@justinwduff Жыл бұрын
Excellent video, thank you so much! wondering if you are able to share way to show the previous 3 months and future 3 months... where your selected value is the "pivot" column of the chart. For example, I'd like to be able to see the revenue targets from the past N months and also the revenue targets for the next N months.
@vijayansilambarasan9629
@vijayansilambarasan9629 Ай бұрын
Thank you so much! I followed your steps, and it works like magic. However, I have one small issue. For example, I set the view to display last 12 months, but sometimes 1 or 2 months do not have any data. I still want to visualize those months. How can I achieve this? Please advise.
@Navsworld13
@Navsworld13 2 жыл бұрын
Wait I didn't understand at 9:50min mark when you were debugging why you expected 184 rows. Can you explain that? Thank you in advance. Love the videos. Learned so much.
@SivaKumar-hg4ps
@SivaKumar-hg4ps 2 ай бұрын
Thank you for the great lecture sir. Sir, I have one doubt. Above this, it is very useful to see month-wise. I tried the above concept month-wise and it successfully worked. But if I filter by 'Date[Date] in sales amount by date wise in chart, it does not work. Will we be able to find date-wise information for the above concept, sir? For example, if I clicked June 2024 in Slicer, the table showed the last 3 month values. If I filtered by 'Date'[Date] in the date-wise sales amount in the chart, the matrix table did not show the date-wise filtered value. It shows only that month wise Value . Kindly, give me solution for this concept Sir.
@markanthonyarasa2396
@markanthonyarasa2396 2 жыл бұрын
Hello Alberto, thanks for this very informative video! Just a question, you're displaying a calculated data in your example (Total Sales). I was trying to display volume (Distinct Count) per month to which I cannot implement the "CALCULATE" function. Would you be able to suggest what should I do?
@aysenuraluclu5334
@aysenuraluclu5334 2 жыл бұрын
your are amazing man
@mikedaicy
@mikedaicy 2 жыл бұрын
Thanks a lot!
@herrjerr9527
@herrjerr9527 2 жыл бұрын
Thanks Alberto. Well explained and easy to implement. I have one issue though. I have noticed that if one or more months in my N period does not have data, that particular month is not shown in the chart. If I set "Show Items with no data" to ON, then it ignores the Previous N months to show filter and shows all months (months less than (current month - N months) and months greater than current month). Could you help?
@sushimayonnaise8312
@sushimayonnaise8312 2 жыл бұрын
Same issue! Do we have solution for this?
@KMF7955
@KMF7955 11 ай бұрын
This is a super video!! I implemented it as best as I could, however, the 6 months & associated values are showing correctly, however, I'm getting all of the other months also, but they are showing as zero. Any tips on what could be happening would be greatly appreciated.
@ALPHERATZ3650
@ALPHERATZ3650 2 жыл бұрын
I m dead with all this knowledge!!!!!
@helloworldtt9271
@helloworldtt9271 3 ай бұрын
marvelous!!! but why do i only see past 11 mths data when i also sort by another location slicer? thanks in advance for your advice!
@user-bb4km1uj3o
@user-bb4km1uj3o 3 жыл бұрын
This is great presentation
@sahiladya8473
@sahiladya8473 2 жыл бұрын
Amazing and well explained.
@sairam2933
@sairam2933 8 ай бұрын
Excellent Explaining @alberto. can we group this to a Sales_Agent (Say) level ?. By following the approach in ethe video i'm able to get on a whole; when trying to break about at sales-agent level i'm able to see only the months when he made any sale; but looking for all the last 6 months even if there is no sale from him. thanks in advance
@jithiljohn2961
@jithiljohn2961 2 жыл бұрын
Thanks Alberto, instead of year-month slicer, I want to use date range slicer. And this formula is not working in this case. Can you please help
@giangutierrez5109
@giangutierrez5109 Жыл бұрын
Thank you for this tutorial. I tried to use this showing previous days, it worked but it is including weekends. How can I skip these days so it won’t show on the graph?
@HDREconomist
@HDREconomist 3 жыл бұрын
Ooohhh. This gave me some cool ideas!
@FredrikLindblad-yk2ul
@FredrikLindblad-yk2ul Жыл бұрын
Excellent solution! I do have a question if you have a solution for if I for each month would like to show the sum of the Last 12 months i.e. like a trailing LTM for the last 12 months still only selecting a single month.
@armstrongabebrese8310
@armstrongabebrese8310 2 жыл бұрын
great explanation...how about if you selected multiple months
@Deepak-iq5ul
@Deepak-iq5ul Жыл бұрын
Thank you for such videos❤. Although I have some different scenario, I have YYYYMM slicer on my report page with multiple years of data.And data is loading on monthly basis. Currently I have saved YYYYMM slicer with recent 12 months selected but client is expecting if new month data gets loaded again recent 12 months should be automatically updated. Any input on this please.
@Sabrina-kq6en
@Sabrina-kq6en 4 ай бұрын
Holla Aberto, great explanation 👍But can you please explain how to create this slicer for the whole report 🙏 I try it since days 😢I Was not able to adopt it for the whole report - I hope you can help 🤗 A slicer where i chosse the Month and get the data from this month - 6 month.🥀
@ricardorb6113
@ricardorb6113 2 жыл бұрын
Thanks Alberto. But, could this be applied to a rolling measure?, Thanks
@iira1311
@iira1311 Жыл бұрын
Thank you for the wonderful explanation. love your all videos but my Date field hierarchy gets removed which is creating problem for slicer, Any solution on that?
@Zealand-Data
@Zealand-Data 4 ай бұрын
it seems like I run into trouble, when I syncronize with slicers from other pages in the report. Is that something that you have experienced, or have any good advice on? Otherwise it has worked perfectly
@drod96
@drod96 3 жыл бұрын
I currently use a technique like this when providing financial reports, I am also having the data presented by our companies fiscal year and crop year to date CYTD and FYTD from the respective cost centers. The challenge I have is showing the "future" months as well to look at rolling forecast as well as total Budget. I dont use calculation group, and my model right now requires about 5 measures just to give me FYTD based on a current date or any date you wantto type in and it re-calculates the measures based on that date. Thank you for this video. Could you show how you would implement this, but in a companies fiscal year to date measure ( powerbi knows the first month of the fiscal year regardless of what date you set as input?). Thanks again.
@dilshanperera5990
@dilshanperera5990 2 жыл бұрын
This is great!! But drill through seems not correct for each month values
When to use KEEPFILTERS over iterators
18:56
SQLBI
Рет қаралды 48 М.
Show last 13 Months from Slicer Selection in Power BI (DAX)
9:49
wow so cute 🥰
00:20
dednahype
Рет қаралды 31 МЛН
Meet the one boy from the Ronaldo edit in India
00:30
Younes Zarou
Рет қаралды 19 МЛН
나랑 아빠가 아이스크림 먹을 때
00:15
진영민yeongmin
Рет қаралды 4 МЛН
🩷🩵VS👿
00:38
ISSEI / いっせい
Рет қаралды 27 МЛН
Best practices for using KEEPFILTERS in DAX
28:24
SQLBI
Рет қаралды 10 М.
3 Ways to use Calculation Groups You Need to Know
20:00
How to Power BI
Рет қаралды 66 М.
Common mistakes in big data models
1:13:23
SQLBI
Рет қаралды 64 М.
Computing rolling average in DAX
16:43
SQLBI
Рет қаралды 72 М.
Fields parameters in Power BI
20:38
SQLBI
Рет қаралды 77 М.
SLICERS done Differently | Power BI
17:07
How to Power BI
Рет қаралды 180 М.
Build a DATE PICKER in Power BI Desktop
10:14
Guy in a Cube
Рет қаралды 204 М.
wow so cute 🥰
00:20
dednahype
Рет қаралды 31 МЛН