How to Use VARIABLES in Dax Formulas in Power BI

  Рет қаралды 24,302

Nestor Adrianzen

Nestor Adrianzen

Күн бұрын

Пікірлер: 67
@camilacifuentes6739
@camilacifuentes6739 4 жыл бұрын
Great videos!! Thank you!
@NestorAdrianzen
@NestorAdrianzen 4 жыл бұрын
Thanks, Camila! Glad you found the content helpful. Stay tuned for more lessons.
@xeeshanahmad8757
@xeeshanahmad8757 3 ай бұрын
I just finished watching your video on using VARIABLES in DAX formulas in Power BI, and I wanted to take a moment to thank you for such a beautifully and simply explained tutorial. Your clear and concise explanations made it easy to understand the concept, logic, and practical uses of variables in DAX. Thank you once again for such an insightful and easy-to-follow video.
@NestorAdrianzen
@NestorAdrianzen 3 ай бұрын
Glad it helped!
@jreyescruz
@jreyescruz Жыл бұрын
Wow!! Thank you!! I couldn’t foe the life of me understand how to use variables and this video changed me life 💪. This was by far, the best explanation and practical guide to Variables on KZbin. This will make my coding so much neater and less complex!
@NestorAdrianzen
@NestorAdrianzen Жыл бұрын
Glad to hear that. Cheers 🥂
@mvdyakonov
@mvdyakonov 2 жыл бұрын
I need to make a comment to this topic. RETURN statement is not a part of a variable definition, the Variable syntax (as it is discribed in official documentation) is just like that: VAR = RETURN statement is required in the end of the DAX codeblock to make the final DAX formula that uses all the variables defined in front of it and assign this formula result to the output (table or measure or calculated cokumn).
@NestorAdrianzen
@NestorAdrianzen 2 жыл бұрын
Mikhail, Thanks for stopping by. You are correct! That's what we see for a VARIABLE definition in the Microsoft materials. However, in order to have a complete functionality, the RETURN part should be included in the whole expression, and that's what wanted to share. Defining a VARIABLE by itself, it wouldn't give me any results, but if I complement it with the RETURN part, I can definitely get an outcome. I hope this helps!
@imperialpalace9926
@imperialpalace9926 3 жыл бұрын
Thank you Nestor ! Great lesson, you explain it simple and clearly.
@NestorAdrianzen
@NestorAdrianzen 3 жыл бұрын
Glad you liked it! Keep it up, Imperial Palace!
@shonyamarpaung1842
@shonyamarpaung1842 Жыл бұрын
cant say more than "thank youuuu!!!" for your tutorial! it's soo helpful ^^ i was confused for the function of VAR in DAX, especially when another tutors video are not explaining the meaning of Return and MyVariable (the green one). Thank you, great explanations!
@NestorAdrianzen
@NestorAdrianzen Жыл бұрын
Glad to hear that. Cheers!😃
@sarigoppulavinay5003
@sarigoppulavinay5003 3 жыл бұрын
Boom!! I learned about VAR guys!! Great!!
@NestorAdrianzen
@NestorAdrianzen 3 жыл бұрын
Great to hear!
@sunenielsen2686
@sunenielsen2686 Жыл бұрын
Hi Nestor, thank you for a great video! Very helpful. You are very good at explaining this subject. I have a question regarding the TV profit part - is it no so that the filterering you are doing when using CALCULATE, could also be done using a FILTER function witin the CALCULATE function - or what is the difference using it or not?
@NestorAdrianzen
@NestorAdrianzen Жыл бұрын
@sunenielsen, Thanks for your feedback. You are correct, you can also use the FILTER function as part of the filter argument within CALCULATE. Filters arguments within CALCULATE are actually table expressions, so by using the FILTER function, you will be using the explicit way of a filter argument. I hope that helps! Cheers!
@sunenielsen2686
@sunenielsen2686 Жыл бұрын
@@NestorAdrianzen Thanks for your reply. That makes sense to regard it as the explicit way - I did not know I could do without before watching your video. So know I wonder when functions in Power BI can be left out and only used to make something more explicit? Is this the only case?
@AjayKumar-uf7ux
@AjayKumar-uf7ux 2 жыл бұрын
Thanks! this is really a very simple to understand and effective.
@NestorAdrianzen
@NestorAdrianzen 2 жыл бұрын
Glad it was helpful!
@vishnurao2901
@vishnurao2901 3 жыл бұрын
Great video..!! Easy to lean DAX and Variables if you explain in this way..thanks a lot..
@NestorAdrianzen
@NestorAdrianzen 3 жыл бұрын
Excellent! Keep up the good work, Vishnu Rao!
@tubeitz
@tubeitz 4 жыл бұрын
great video to explain the basics
@NestorAdrianzen
@NestorAdrianzen 4 жыл бұрын
Glad it was helpful!
@prasantaseth4733
@prasantaseth4733 11 ай бұрын
Very nice and helpful
@NestorAdrianzen
@NestorAdrianzen 11 ай бұрын
Glad you found it helpful. Cheers 👍
@jannonflores1113
@jannonflores1113 2 жыл бұрын
Thanks, I finally got it.
@NestorAdrianzen
@NestorAdrianzen 2 жыл бұрын
Glad it helped! Cheers 👍
@mihirthakkar6902
@mihirthakkar6902 3 жыл бұрын
Understood Variables finally !!!!
@NestorAdrianzen
@NestorAdrianzen 3 жыл бұрын
Mihir Thakkar, Excellent! Glad you found the content helpful!👍
@irfanabbassi9202
@irfanabbassi9202 2 жыл бұрын
Outstanding explanation...really enjoying your channel
@NestorAdrianzen
@NestorAdrianzen 2 жыл бұрын
Glad you enjoy it! Cheer!
@kamransamad9686
@kamransamad9686 2 жыл бұрын
Very well explained, thanks.
@NestorAdrianzen
@NestorAdrianzen 2 жыл бұрын
Glad it was helpful! Cheers!
@SuperShiva2012
@SuperShiva2012 2 жыл бұрын
Boom! Thank you Nestor
@NestorAdrianzen
@NestorAdrianzen 2 жыл бұрын
💥 Boom. Thanks for stopping by, SuperShiva!
@ericlandry3971
@ericlandry3971 3 жыл бұрын
Hi. Loved the video. One question though. Why create three variables in the examples, then return the last one in the return statement. Why not just create the first two then put the third as the return statement? Thanks
@NestorAdrianzen
@NestorAdrianzen 3 жыл бұрын
Eric Landry, thanks for stopping by. Yes, that’s also possible.
@raushankumarpandey897
@raushankumarpandey897 2 жыл бұрын
Nicely explained
@NestorAdrianzen
@NestorAdrianzen 2 жыл бұрын
Thanks for your support, Raushan!👍
@midsummer4864
@midsummer4864 3 жыл бұрын
Thank you very much - highly appreciated
@NestorAdrianzen
@NestorAdrianzen 3 жыл бұрын
Glad it helped
@sachinbudke8429
@sachinbudke8429 3 жыл бұрын
@@NestorAdrianzen tq so much for patients to explain the things called varble
@lg99891
@lg99891 4 жыл бұрын
Hi there, thanks for the video, seems pretty nice and clear. Just one question: why would I use variables to calculate the Total Profit - in fact I have the following options: 1. Create calculated column by deducting Premium Claim - Total Cost, 2. Create a measure deducting Premium Claim - Total Cost, 3. Create a var measure the way you've done it. Where should I use which option? Thank you, Luke
@NestorAdrianzen
@NestorAdrianzen 4 жыл бұрын
Luke, thanks for your question. You are correct, we could have found Total Profit by using the first and second options described above as well. I decided to use the variables for illustrative purposes. However, here are a couple of details to be aware of: If we have large datasets and this data needs to be refreshed quite often, we would want to use measures over calculated columns to save memory and disk space. Also, we should avoid calculated columns as intermediate calculations for a measure. Finally, because variables improve code readability and performance, we would want to use variables in measures that involve more complex formulas. I hope it helps. Thanks!
@hemarajani2711
@hemarajani2711 3 жыл бұрын
Awesome...bring more examples for variables
@NestorAdrianzen
@NestorAdrianzen 3 жыл бұрын
Will do! Keep it up, Hems Rajani👍
@revorg23
@revorg23 4 жыл бұрын
Cuando llegaste a los gráficos con barras, me perdí, esperaré la versión en español para entenderla mejor, 😎😎
@NestorAdrianzen
@NestorAdrianzen 4 жыл бұрын
Grover, Acabo de publicar la versión en español. Aquí está el link: kzbin.info/www/bejne/fHPLgpywe7mjf7c
@raju__AYU
@raju__AYU 3 жыл бұрын
Nice vedio, can you say I went fetch sales value having the date 1-3-2015 , ,which Dax should be used ?
@NestorAdrianzen
@NestorAdrianzen 3 жыл бұрын
Raju Alex, Thanks for stopping by. Could you please share more details about your question so I can provide you with a better explanation? Cheers!
@vmcostaferreira
@vmcostaferreira 2 жыл бұрын
BOOM!
@NestorAdrianzen
@NestorAdrianzen 2 жыл бұрын
You got it! Boom💥
@ridzal7901117
@ridzal7901117 3 жыл бұрын
Thanks ..Great video
@NestorAdrianzen
@NestorAdrianzen 3 жыл бұрын
Ridzal, Thanks for stopping by. Keep up the great work!
@gangababupatchipala3728
@gangababupatchipala3728 4 жыл бұрын
Nice, thank you for this video
@NestorAdrianzen
@NestorAdrianzen 4 жыл бұрын
Glad it helped!
@suryaphaneendra8523
@suryaphaneendra8523 3 жыл бұрын
Very useful videos
@NestorAdrianzen
@NestorAdrianzen 3 жыл бұрын
Excellent!
@giorgosi.fovakis8810
@giorgosi.fovakis8810 3 жыл бұрын
Great!!
@NestorAdrianzen
@NestorAdrianzen 3 жыл бұрын
Thanks for stopping by, Giorgos. Keep it up 👍
@NestorAdrianzen
@NestorAdrianzen 4 жыл бұрын
Here is the content link: drive.google.com/file/d/1Kkwn3Xu9SvxGHB3ak5HveYpuf9F1XFg8/view?usp=sharing
@snehalgawari4258
@snehalgawari4258 4 жыл бұрын
besto
@NestorAdrianzen
@NestorAdrianzen 4 жыл бұрын
Glad you found it helpful, Snehal!
@carlosalvarezsolis7201
@carlosalvarezsolis7201 4 жыл бұрын
In spanish, please
@NestorAdrianzen
@NestorAdrianzen 4 жыл бұрын
Carlos, thanks for your request. I'll publish the Spanish version this upcoming Saturday. Stay tuned!
@NestorAdrianzen
@NestorAdrianzen 4 жыл бұрын
I just posted the Spanish version. Here is the link: kzbin.info/www/bejne/fHPLgpywe7mjf7c
@sravankumar1767
@sravankumar1767 3 жыл бұрын
hi bro i got a job on power bi with sql on support project if i get any doubts can i contact you, please give me your email i will post my doubts,..
MEASURES vs CALCULATED COLUMNS in DAX
21:19
Nestor Adrianzen
Рет қаралды 10 М.
Variables in DAX
16:46
SQLBI
Рет қаралды 35 М.
РОДИТЕЛИ НА ШКОЛЬНОМ ПРАЗДНИКЕ
01:00
SIDELNIKOVVV
Рет қаралды 3,8 МЛН
Every parent is like this ❤️💚💚💜💙
00:10
Like Asiya
Рет қаралды 26 МЛН
Flipping Robot vs Heavier And Heavier Objects
00:34
Mark Rober
Рет қаралды 41 МЛН
📊 How to use Power BI DAX - Tutorial
37:28
Kevin Stratvert
Рет қаралды 1,1 МЛН
How to Use the ALL DAX Function in Power BI
25:37
Nestor Adrianzen
Рет қаралды 18 М.
Introduction to DAX in Power BI
41:05
Bulldog Analytics
Рет қаралды 512
Mastering DAX Variables: Boost Your Power BI Formulas | MiTutorials
15:15
Variables in DAX
17:08
Goodly
Рет қаралды 45 М.
How to Create RELATIONSHIPS in Power BI
19:17
Nestor Adrianzen
Рет қаралды 55 М.
DAX BASICS in Power BI Desktop [Part 2]
27:36
Nestor Adrianzen
Рет қаралды 11 М.
PP12 | DAX | VAR & RETURN to simplify your code | Power Pivot Tutorial
16:04
ِAAA Excel English
Рет қаралды 2,2 М.
РОДИТЕЛИ НА ШКОЛЬНОМ ПРАЗДНИКЕ
01:00
SIDELNIKOVVV
Рет қаралды 3,8 МЛН