Optimizing nested iterators in DAX

  Рет қаралды 20,956

SQLBI

SQLBI

Күн бұрын

Possible optimization approaches to improve the performance of nested iterators in DAX. Article and download: sql.bi/70755/?aff=yt
How to learn DAX: www.sqlbi.com/guides/dax/?aff=yt
The definitive guide to DAX: www.sqlbi.com/books/the-defin...

Пікірлер: 43
@AgulloBernat
@AgulloBernat 3 жыл бұрын
I can't belive these awesome videos don't even have ads,
@lukeminikoski
@lukeminikoski 3 жыл бұрын
It's self-ads!
@Wzxxx
@Wzxxx 2 жыл бұрын
Soon they will
@SQLBI
@SQLBI 2 жыл бұрын
We have no plans to add ads. After all, we already promote our courses! www.sqlbi.com/training/
@AgulloBernat
@AgulloBernat 2 жыл бұрын
@@SQLBI great courses, by the way
@Wzxxx
@Wzxxx 2 жыл бұрын
@@SQLBI Honestly i am not against any ads especially when people share their knowledge which they collect for years.
@agasti2007
@agasti2007 3 жыл бұрын
I like your video even before watching it. SQLBI is my favourite thing on internet. - a DAX and MDX fan.
@diegomsg
@diegomsg 2 жыл бұрын
So much clarity presenting complex solutions with simple approaches.
@lukeminikoski
@lukeminikoski 3 жыл бұрын
Watching this kind of videos, I'm pretty sure theat video courses and the books are the best investments I ever made! Thank you!
@omalinsky
@omalinsky Жыл бұрын
thank you, Alberto this video goes so well with reading the chapters on calculation context, Calculate, and context transition in the Definitive Guide to DAX!
@viniciusfernandes3552
@viniciusfernandes3552 Жыл бұрын
Thanks Alberto.
@lmblancoancos
@lmblancoancos 3 жыл бұрын
Thank you Alberto, the whole video is great, but the final trick, when you change the code to made it work with only one iteration is fantastic
@jiajinliang6121
@jiajinliang6121 2 жыл бұрын
Thank you Alberto for such a clear and thorough lecture! It is just awesome
@mnowako
@mnowako 3 жыл бұрын
Unbelievable useful lesson. Thank you, professor Alberto.
@JontyLP
@JontyLP 3 жыл бұрын
Great video, awesome that you share your knowledge openly like this!
@smartdata678
@smartdata678 3 жыл бұрын
Ciao Alberto! I love your: This is always dangerous! :) Good video as always!
@ramonillarramendi3191
@ramonillarramendi3191 2 жыл бұрын
Amazing!! Excellent video and explanation. Thank you very much
@satishkumardommeti8282
@satishkumardommeti8282 3 жыл бұрын
Simply awsome. You are indeed a DAX Super Guru.
@Milhouse77BS
@Milhouse77BS 3 жыл бұрын
Thanks. Makes me feel need to rework my longer running DAX queries.
@Bharath_PBI
@Bharath_PBI 3 жыл бұрын
Enjoying DAX! Thank you 👍
@pratikfutane8131
@pratikfutane8131 Жыл бұрын
Thanks a lot Alberto! Great video!
@3danim8r1
@3danim8r1 3 жыл бұрын
That's beautiful! Really amazing
@wodraeve
@wodraeve 3 жыл бұрын
Thanks. I would be interested in seeing a few videos on how to deal with 'time'. What if your granularity is at a second level? How does this affect your model and your measures? Splitting date and time or both? Etc...
@danjarupath
@danjarupath 3 жыл бұрын
Awesome !!! Appreciate that you contribute a lot to all over the world world 🌍🌍🌍🌍🌍
@tibobago
@tibobago 3 жыл бұрын
Thanks Alberto, another great video. Super interesting to see that you can actually use nested iteration by adding granularity and in your example it was super quick. I have the perfect dataset to test all that tomorrow!
@RobertoStaltari
@RobertoStaltari 3 жыл бұрын
Pure gold. Thanks
@arifismayilli6936
@arifismayilli6936 9 ай бұрын
Perfect !!!
@101Kotetsu
@101Kotetsu 3 жыл бұрын
Buen trabajo!
@kadirkkkk
@kadirkkkk Жыл бұрын
I stuck on nesting 4 level hierarchy and sum/average based on row parameter. Could not find an exit so now turning back to power query to handle this. sorry dax
@benjison1000
@benjison1000 Жыл бұрын
What about if the 2 two tables that are used are Many to Many? It looks like in this example product/customer are on the 1 side, so sales can be used. In my case I need to look at both table1 and table2. Both table1 and table2 have millions of rows. i.e. SUMX( Table1, --many side SUMX( FILTER( Table2, -- many side Table2[BuyStatus] = 3 && Table2[ClientKey] = Table1[ClientKey] && Table2[DebtorKey] = Table1[DebtorKey] && (Table2[TransPostDate]=(Table1[MonthEnd2]-30)) && (Table2[CloseDate]>'Table1'[MonthEnd2] || ISBLANK(Table2[CloseDate])) ), Table2[Amt] ) )
@questionsformedb8157
@questionsformedb8157 3 жыл бұрын
Super good
@lanasedayanoch
@lanasedayanoch 3 жыл бұрын
The best lecturer in the world! Just one question (not sure if you do answers) - why Performance Analyser and Dax Studio server timings had 25% difference in speed?
@SQLBI
@SQLBI 3 жыл бұрын
Every run could be different, but DAX Studio does not include the time required to fetch the result, which is probably included in Performance Analyzer.
@DIGITAL_COOKING
@DIGITAL_COOKING 3 жыл бұрын
please question: if I said that I understand clearly the video (beside your high quality of teaching of course 🙂) does it mean that I grab some basics about DAX concepts?
@SQLBI
@SQLBI 3 жыл бұрын
Yes you should!
@visheshjjain
@visheshjjain 3 жыл бұрын
Why did we use variables inside the SUMX() and not just use the respective columns?
@SQLBI
@SQLBI 3 жыл бұрын
No differences, by using variables the code is self-documented (the variable name describe the purpose of the sub-expression).
@paragkhandalkar
@paragkhandalkar 3 жыл бұрын
Can you please create something on dynamic currency conversion in powee bi..we use sap bw data in power bi..and we yet do not have solution for dynamic currency conversion.. please can you create a video on that..will be very usefull
@SQLBI
@SQLBI 3 жыл бұрын
It's already available here: www.daxpatterns.com/currency-conversion/
@NoShadowOfDoubt1
@NoShadowOfDoubt1 3 жыл бұрын
Hello Alberto, I have some questions: 1- are these KZbin videos same videos that you offer in the course? 2- will you cover DAX excel solutions in Excel in the course, for an example, selected value and remove filters don’t exist in power pivot, ? Thank you
@SQLBI
@SQLBI 3 жыл бұрын
No - the video courses have different videos and also include exercises. The course is a more structured approach to basic concepts and detailed analysis of syntax/use/optimization (depending on the video course). The videos on KZbin are focused on single issues. The second question is not very clear - the Mastering DAX video course is a course about the DAX language that you can use with different tools. The examples and the exercises use mainly Power BI, but the language is the same across all the platforms.
@Th3M0rri
@Th3M0rri 2 жыл бұрын
nice to see a mechanical keyboard :) What switches are in there?
@SQLBI
@SQLBI 2 жыл бұрын
You can find the hardware used in the videos here: www.sqlbi.com/blog/alberto/2021/02/14/on-my-recording-gear/
Differences between GROUPBY and SUMMARIZE
28:30
SQLBI
Рет қаралды 34 М.
When to use KEEPFILTERS over iterators
18:56
SQLBI
Рет қаралды 47 М.
Каха и суп
00:39
К-Media
Рет қаралды 6 МЛН
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 9 МЛН
[DAX] Best Practices 101 for Optimization & Performance (with Alberto Ferrari)
1:26:41
Using join functions in DAX
40:30
SQLBI
Рет қаралды 10 М.
DAX Optimizations Examples with Alberto Ferrari
59:40
Iteration Insights
Рет қаралды 23 М.
Row Context in DAX
20:42
SQLBI
Рет қаралды 95 М.
Optimizing duplicated DAX expressions using variables
9:48
Propagating filters using TREATAS in DAX
19:18
SQLBI
Рет қаралды 44 М.
Understanding data lineage in DAX
18:14
SQLBI
Рет қаралды 29 М.
Optimizing callbacks in a SUMX iterator
14:10
SQLBI
Рет қаралды 6 М.
Understanding context transition
18:25
SQLBI
Рет қаралды 65 М.
Что не так с раскладушками? #samsung #fold
0:42
Не шарю!
Рет қаралды 213 М.
Отдых для геймера? 😮‍💨 Hiper Engine B50
1:00
Вэйми
Рет қаралды 1,3 МЛН
Choose a phone for your mom
0:20
ChooseGift
Рет қаралды 7 МЛН
😱Хакер взломал зашифрованный ноутбук.
0:54
Последний Оплот Безопасности
Рет қаралды 973 М.