Rolling average with working days in DAX

  Рет қаралды 12,829

SQLBI

SQLBI

Жыл бұрын

This article shows how to compute a rolling average (useful to smooth out charts) taking into account only the working days.
Article and download: sql.bi/757611?aff=yt
How to learn DAX: www.sqlbi.com/guides/dax/?aff=yt
The definitive guide to DAX: www.sqlbi.com/books/the-defin...

Пікірлер: 29
@graemegourlay2850
@graemegourlay2850 4 ай бұрын
Exactly what I needed to do for a piece of analysis. I would never have figured this out myself. Big thank you for this tutorial.
@matthewdufty606
@matthewdufty606 8 ай бұрын
The KZbin algorithm literally read my mind. I wanted to look at rolling averages this morning and this popped up in my feed. How bizarre!
@mnowako
@mnowako Жыл бұрын
That’s a very interesting business case. Both examples are great and the explanation is second to none. Thank you and please make more such examples. 👏
@matthiask4602
@matthiask4602 Жыл бұрын
Alberto, thank you so much for videos like this. You are the best teacher of data analytics (esp. DAX of course) I ever experienced.
@Anthony_Lecoq
@Anthony_Lecoq Жыл бұрын
Crazy amazing good job Alberto as always. I love when you demonstrate how to solve an issue when starting from scratch. 👍
@justFast1k
@justFast1k Жыл бұрын
Amazing! As usual Thank you, Alberto!
@datasapien
@datasapien Жыл бұрын
Amazing content Alberto! , the live calculated column part was pure wizardy.
@MS-im2zy
@MS-im2zy Жыл бұрын
Thank you! Doing this in a measure is exactly what I have been working on...and was stuck
@AgulloBernat
@AgulloBernat Жыл бұрын
I love these vídeos!! Keep them coming!
@PeterKontogeorgis
@PeterKontogeorgis Жыл бұрын
You always make things look so easy! Looking forward to your training in Melbourne in October!
@SQLBI
@SQLBI Жыл бұрын
Thank you Peter! Just one note: Marco will be teaching in Melbourne this year, not Alberto.
@PJJACOB360
@PJJACOB360 11 ай бұрын
You are the best
@FitofnietOfficial
@FitofnietOfficial Жыл бұрын
Thanks for the great content. I was wondering why did you add the less "
@naylord5
@naylord5 Жыл бұрын
This video is excellent master! Thank you for sharing your knowledge and experience with the community. Can I ask you a question? I have a statement with a list of payments, each movement is associated to a document number, the problem is that the payments can be cancelled N amount of times and reapplied, either to the same doc or to another one. I would like to use Power Query to keep only the last odd (non) occurrence of the payments, but if the number of payments is even, discard them all. That is, if doc 1 had 1 payment, 1 cancellation and 1 payment again, only keep the third transaction, but if doc 2 had a payment and it was cancelled, but it was not paid again, discard all the payments of doc 2. Do you think you could help me? Thanks in advance for your time.
@Bharath_PBI
@Bharath_PBI Жыл бұрын
That's best as always! You mentioned IF() should be avoided in calculated column as best practice (optimization), do you have any article on this or any reference link?
@SQLBI
@SQLBI Жыл бұрын
www.sqlbi.com/articles/calculated-columns-and-measures-in-dax/
@readistreet9383
@readistreet9383 Жыл бұрын
Hi, great video as allways, it would help me a lot. Just one thing, the first values of the moving average are not correct, till it reach the 30 days of data. for example, in the first day youre dividing the first value by 30 wich is not correct. Maybe a better way is to use in the VAR NumberOfDays the actual number of days in the range min/max workingday instead of just 30
@kesavaraju9652
@kesavaraju9652 Жыл бұрын
In live connection also we can create a calculated column, By simply allowing a local model. But You showed an excellent way instead.
@brizotfrizot
@brizotfrizot 7 ай бұрын
What is the relationship between your date table and sales table?
@frankgovers8420
@frankgovers8420 Жыл бұрын
Should the not function have brackets?
@AgulloBernat
@AgulloBernat Жыл бұрын
Question: the removefilters on date you add on 23:28 was not necessary in the calculated column version of the code?
@SQLBI
@SQLBI Жыл бұрын
Not necessary there.
@firdosesyed8981
@firdosesyed8981 Жыл бұрын
Hlo sir I'm a beginner how much time it takes to learn the advanced level if SQL
@sbn4862
@sbn4862 Жыл бұрын
To learn DAX one must training every day, it's single way! What if we accept one filter in Calculate as WorkingDay="True"?
@SQLBI
@SQLBI Жыл бұрын
The issue is how to count the number of working days so that they are always the same number in each interval. This is the purpose of the calculation made in the video.
@andreikilla
@andreikilla Жыл бұрын
What if you have multiple products in same table
@SQLBI
@SQLBI Жыл бұрын
Use the product name as a grouping condition so you merge them.
@irfandaud7380
@irfandaud7380 Жыл бұрын
DAX needs to be organized and should be in sequence ... Now i know why people say DAX is difficult
Understanding context transition
18:25
SQLBI
Рет қаралды 63 М.
When to use KEEPFILTERS over iterators
18:56
SQLBI
Рет қаралды 47 М.
Which one of them is cooler?😎 @potapova_blog
00:45
Filaretiki
Рет қаралды 10 МЛН
Always be more smart #shorts
00:32
Jin and Hattie
Рет қаралды 9 МЛН
Её Старший Брат Настоящий Джентельмен ❤️
00:18
Глеб Рандалайнен
Рет қаралды 8 МЛН
Homemade Professional Spy Trick To Unlock A Phone 🔍
00:55
Crafty Champions
Рет қаралды 52 МЛН
Calculate a Rolling Average in Power BI Using DAX
11:00
Essential Excel
Рет қаралды 54 М.
Using ALLEXCEPT vs ALL VALUES
13:35
SQLBI
Рет қаралды 52 М.
Variables in DAX
16:46
SQLBI
Рет қаралды 32 М.
🚨 YOU'RE VISUALIZING YOUR DATA WRONG. And Here's Why...
17:11
Adam Finer - Learn BI Online
Рет қаралды 22 М.
Introducing ALLSELECTED in DAX
14:07
SQLBI
Рет қаралды 14 М.
Power Query - Faster & Easier Parameters
13:38
BCTI
Рет қаралды 33 М.
Why Power BI totals might seem wrong
27:55
SQLBI
Рет қаралды 49 М.
После ввода кода - протирайте панель
0:18