Making DAX Easy

Поділитися
Вставка
  • Опубліковано 20 чер 2024
  • 5 things you need to know about DAX. After knowing these main concepts DAX started to make sense to me and I'm sure it will for you too. It is high time to make DAX Easy to everyone!
    Enjoy this video and subscribe to always stay updated on my favorite Power BI tricks!
    Download file here datatraining.io/powerbi-how-to
    --------------------------------
    📊 TRAININGS 📊
    ---------------------------------
    Power BI Design 4 Weeks Transformation Program my.datatraining.io/pages/powe...
    Power BI Essentials datatraining.io/powerbilearni...
    Business User Training datatraining.io/powerbi-busin...
    For Custom Trainings and Consulting email directly support@datatraining.io
    ---------------------------------
    ⏱️ TIMESTAMPS ⏱️
    ---------------------------------
    00:00 Intro
    00:50 1. Filter context & calculate
    04:47 2. Variables
    06:51 3. Row context
    08:25 4. Context transition
    13:31 5. When to use a measure vs calculated column
    18:10 Putting it to practice
    19:44 End
    ---------------------------------
    😍 JOIN 😍
    ----------------------------------
    Join bit.ly/4b453bi
    Subscribe bit.ly/31MnQGO​
    Insta / howtopowerbi
    LinkedIn / basdohmen
    TikTok / how.to.power.bi
    X / howtopowerbi
    fb / howtopowerbi
    Threads www.threads.net/@howtopowerbi
    Newsletter datatraining.io/newsletter
    ---------------------------------
    👇 CHECK THIS OUT! 👇
    ---------------------------------
    💻 My gear amzn.to/47F21Yc
    📚 Power BI books MUST READ! amzn.to/3tUfFcj
    💡 General books I recommend amzn.to/48YNo33
    🎶 Music for my videos www.epidemicsound.com/referra...
    🚀 For growing on UA-cam: www.tubebuddy.com/bas
    🏄 Stuff I use daily amzn.to/3HqfMQ2
    * Above are affiliate links, which means at no additional cost to you, if you make a purchase using these links we will receive a small commission. It supports us and helps us to continue making more How to Power BI videos!
    Thanks for being a part of this channel and all your support! 💪 🙏
    #HowToPowerBI​ #PowerBI​ #DataTraining​
    #powerbidesktop​ #powerbitraining​ #powerbideveloper​ #DAX
  • Наука та технологія

КОМЕНТАРІ • 204

  • @elfyjohnson261
    @elfyjohnson261 9 місяців тому +14

    Out of hundreds of thousands of videos that claim to teach DAX, there are only a handful of videos that actually emphasize on DAX concepts. This video is one of them.

  • @sukoi2113
    @sukoi2113 2 роки тому +31

    "Correct Context is everything". this is the one video which should help all new comers into the world of Power BI.

    • @HowtoPowerBI
      @HowtoPowerBI  2 роки тому +4

      that's right - understanding that gets you a looong way with dax. Thanks for watching Rajneesh!

  • @AbouAli01006300091
    @AbouAli01006300091 2 роки тому +27

    This shouldn’t be used as a normal video … it must be used as a handbook whenever anyone wants to write a DAX equation
    Really very great one .. I love it 🤝🙏🏻👍

  • @mrkenny83
    @mrkenny83 2 роки тому +16

    The 👏🏼 best 👏🏼 power 👏🏼 bi 👏🏼 guru 👏🏼 ever 👏🏼

    • @HowtoPowerBI
      @HowtoPowerBI  2 роки тому

      thank you so much for the compliment Kenny!

  • @alex...g
    @alex...g 2 роки тому +37

    Really great video as always. I love how you show the incorrect steps people commonly make along the way and then show how to resolve. Thank you for your hard work.

  • @devnewbie5932
    @devnewbie5932 11 місяців тому +3

    One of the best tutorials for Power BI in YTube!

  • @Been_8
    @Been_8 Рік тому +1

    Such a lovely guy who share all of his knowledge on powerbi on UA-cam for free. With all shortcuts, no hold barred. God bless you my brother.

  • @ItsWithinYou
    @ItsWithinYou 2 роки тому +5

    Amazing! You have turned a complex topic to simple by breaking it down step by step explanation. Many thanks for sharing your wisdom!

  • @Bharath_PBI
    @Bharath_PBI 2 роки тому +5

    In DAX world, table filters are not healthy when it comes to performance (report, code, capacity usage etc.).
    I have seen many UA-camrs making this mistake, and people learn those methods without knowing the impact (Example: dimCustomer in YT Video may have x number of records where as in reality it might be (x+n) rows with hundreds of columns.
    Was happy to see REMOVEFILTERS(dimCustomer[Customer Name]) at last somewhere instead of ALL(dimCustomer).
    Thank you

  • @jameszhou162
    @jameszhou162 2 роки тому +2

    Great stuff, Bas! You have explained the concept succinctly and precisely. I did have trouble to explain the context transition accurately to my colleagues. Thanks for the tip

  • @ohtwerky
    @ohtwerky 2 роки тому +4

    Love your narration. Always simple, concise and in a business context. Nice video.

  • @joshuaallen6450
    @joshuaallen6450 Рік тому +2

    That opening is exactly how I have felt trying to do DAX. I have a programming background and DAX makes me want to pull my hair out sometimes....

  • @mitesharora649
    @mitesharora649 Рік тому

    The best video I have ever seen to differentiate between Calculated Column vs DAX!!!

  • @thierrythomas6640
    @thierrythomas6640 2 роки тому +8

    The core of DAX in 20 minutes…
    Thanks Bas for your videos !

  • @rainerstehr
    @rainerstehr 2 роки тому +2

    Thank you, Bas, for this very useful information. Also, clear and precise, as always!

  • @tomcoppens5581
    @tomcoppens5581 2 роки тому +2

    Of all videos out there, this one actually made DAX easy! Thx Bas!

  • @VincentDegrave
    @VincentDegrave Рік тому

    Super bedankt ! Clearly explained and helps getting on track, removing the fuzz and confusion!

  • @ripredowski1376
    @ripredowski1376 Рік тому

    I love your channel and your vibe. Thanks for making a frustrating topic so much easier. Please do more PowerBI vids on Dax and M.

  • @kostaszogo21
    @kostaszogo21 2 роки тому

    Another amazing video by the guy that's better than Netflix! Thanks again Bas!
    I have a question though: Is there a way to filter by using only part of the value and not the whole word? For example instead of finding all Sales for which [Product Category] ="Hair", can we find all Sales for every [Product Category] that contains let's say the letters "*AI*" somewhere in the [Product Category] field?

  • @luda_c
    @luda_c 2 місяці тому

    One of the very best Power BI training videos. Superbly explained, professional and charming delivery. THANK YOU!

  • @paulj625
    @paulj625 2 роки тому

    Awesome!!! I just started using variables watching your video 👍👍

  • @spen2431
    @spen2431 2 роки тому +2

    "Easier NOT easy" - Nice work Bas, thanks for sharing. 👍👍👊👊

  • @ukaszlachmider5961
    @ukaszlachmider5961 Рік тому

    Thank you, that was super informative! I will definitely use these tips in my daily work!

  • @hosseinemami4795
    @hosseinemami4795 Рік тому

    Great video!
    quick question, How can we filter our visual by the value of the measure we created, let say we want to see specific range of Cost% to sales without creating calculated colomn?

  • @isaxonisaxon93
    @isaxonisaxon93 2 роки тому

    Perfect combination of teaching skills and good looks.
    Saluti dall’Italia 😘

  • @flexambassador
    @flexambassador Рік тому +1

    I know fir sure you are good .. plz do more on dynamic colorful themes n charts on power pi. Keep it up.. u make learning easy

  • @cristiancamilorendonjimene6327
    @cristiancamilorendonjimene6327 Місяць тому

    The weighted and unweithed way was really illuminating! Thanksss!

  • @vxmine
    @vxmine 2 роки тому

    I just stumbled onto your page. I love your style and breakdown of instruction. Good stuff!

  • @optimistprime709
    @optimistprime709 Рік тому

    Great tutorial. Straight to the point and everything was explained clearly.

  • @jaumeayala9581
    @jaumeayala9581 2 місяці тому

    A "must" for anybody looking to use DAX. It makes clear what the "context" concept means and what's the rationale to use measure or calculated columns , not just choosing one or another because it's the right way but to understand the reason for that.

  • @ejazahmedak
    @ejazahmedak Рік тому

    I love the video. Very accessible for beginners. Feedback: I would have done the when to use measures first (before discussing filter context in measures).

  • @irfanabbassi9202
    @irfanabbassi9202 2 роки тому

    Thank You ..yours explanation is great...
    Can you Please make a video on Power BI Cohort Analysis,finding lost customer, Return customers....
    Always find them challenging to evaluate....

  • @user-tb6mq3xw9l
    @user-tb6mq3xw9l 5 місяців тому

    i really need this ! thanks for sharing this video ...very helpful and hope you ll share video on data modelling

  • @jourdango2615
    @jourdango2615 Рік тому +1

    Another important question! When would you use calculated column vs...doing it in power query ? when would you use one over theo ther?

  • @yassirkhalid5376
    @yassirkhalid5376 2 роки тому +1

    I need a video on how to create such videos!!
    I like the way you zoom the screen to keeping us focused on the important parts

    • @HowtoPowerBI
      @HowtoPowerBI  2 роки тому +3

      thank you Yassir - there's a lot of free good stuff on video editing with premiere pro - just get started and learn by doing :D

  • @louism.4980
    @louism.4980 11 місяців тому

    Thank you, always enjoy watching your videos! :)

  • @Xrusader
    @Xrusader 2 роки тому

    Thanks Bas! As always, making sure I don't get too sloppy with my DAX.

  • @TirajAdikari
    @TirajAdikari 2 роки тому

    Thank you. Very useful

  • @kartorhys
    @kartorhys 5 місяців тому +1

    Very simple explanation, yet covers the main concepts, easy to understand for everyone - Thank you bro !

    • @HowtoPowerBI
      @HowtoPowerBI  5 місяців тому

      Thx for watching :) glad you liked it

  • @honeybee6978
    @honeybee6978 Рік тому

    Dude you are the GOD of PowerBI. Discovered your channel day before yesterday and I'm loving it

    • @HowtoPowerBI
      @HowtoPowerBI  Рік тому

      awesome! Welcome to the channel then :)

  • @islamteach1548
    @islamteach1548 2 роки тому +1

    That was informative and straight to the important points thank you

  • @erikdessiex1026
    @erikdessiex1026 Рік тому

    Probably the best explained video I have seen about DAX, thanks a lot !

  • @mcnater
    @mcnater 2 роки тому

    great overview...thanks

  • @thomasn.-du9ds
    @thomasn.-du9ds Рік тому

    Great video!!! Really important to understand this concept !

  • @Gen_Win_
    @Gen_Win_ 2 роки тому

    Incendiary presentation of the material, I approve 🥇

  • @mv7661
    @mv7661 3 місяці тому

    This video is really amazing. Could you help me with the below situation. I have a sales table and sales return table which records daily sales and return transaction where both table connected to a date dimention table. I need to create a measure to find difference of sales and return till to the day level. Also need to calculate MTD and YTD of this measure.

  • @Fofino72
    @Fofino72 2 роки тому

    thanks for your tutorial!
    How do you make a new line when you write the commands? Is wrapping just to make the formula more readable?

    • @HowtoPowerBI
      @HowtoPowerBI  2 роки тому +1

      yes, exactly - just makes it more readable (and easier to spot mistakes) -> shift + enter .. ua-cam.com/users/shortsI5HSerFTSDI?feature=share

  • @shukryfaiz1665
    @shukryfaiz1665 11 місяців тому

    Your explanations are awesome.
    Pls help me on the following.
    How can I COUNTIF Whinin a measure ?
    Example.
    Measure 1 = calculate the average weekly sales per Salesman.
    Measure 2 = Count the Saleman below 70% of average sales (Measure 1) on a particular day, for each branch

  • @librasfacil8689
    @librasfacil8689 Рік тому

    Loving too much your videos and explanations. Congrats

  • @sirajmohammedali2790
    @sirajmohammedali2790 Рік тому

    Nicely explained. Thanks a lot for the useful content.🔥

  • @jhdatascience
    @jhdatascience Рік тому

    Really helpful and great instructional video Bas!

  • @hugoatencia9408
    @hugoatencia9408 Рік тому

    Thank you, greetings from Perú.

  • @philjasonal
    @philjasonal 4 місяці тому

    great video to get started, I wish I found this one earlier in my career. by the way, you missed the allselected() function to calculate sub totals that everyone else talks about all the time lol.

  • @digitalexpanse
    @digitalexpanse 9 місяців тому

    This was really useful, thank you!

  • @jigsparikh7961
    @jigsparikh7961 2 роки тому

    Amazing
    I got the Dax summary in 20 minutes thanks

    • @HowtoPowerBI
      @HowtoPowerBI  2 роки тому

      hope dax will be easy(ier) from here on now :D - thx for watching Jigs!

  • @ksperder4035
    @ksperder4035 3 місяці тому

    Hi Bas! Thanks a lot for this video and all of them, i'm new at dax and your channel is being really useful.
    I'm having trouble understanding context transition.
    I've tried appying the calculate(sum()) formula, but it doesn't respect the calendar table filter. If i use a meassure it works correctly, but i think i need a calculated column with the amount, since the goal is to label the customer according to 3 categories for the amount of income of each one. Could you give a hint? thanks in advance.
    Kind regards.

    • @HowtoPowerBI
      @HowtoPowerBI  3 місяці тому

      calculate(sum(salesamount)) should give you the same as a measure [Total Sales] .. not sure where you go wrong

  • @mahmoudserag5261
    @mahmoudserag5261 Рік тому

    I adore your work man!

  • @robrayborn1349
    @robrayborn1349 2 роки тому +1

    Thank you soooooo much!

  • @excelworx8712
    @excelworx8712 2 роки тому

    Thanks Bas, your video is right on context ;-)

  • @taniadogra4255
    @taniadogra4255 10 місяців тому

    the first video i watched for power bi. Great one!

    • @HowtoPowerBI
      @HowtoPowerBI  10 місяців тому

      awesome, hopefully not the last one :D

  • @lalainerepuela593
    @lalainerepuela593 6 місяців тому

    Hi, is there a way to get a specific date values thru DAX e.g. getting the sales every 1st of the month then comparing it with current sales value. I tried using CALCULATE and FILTER but the 1st day sales only shows on the total rows but doesn’t show up on each rows. It will only show the per row values if the selected report date is 1st of the month. Hope you can cover it in your future video

  • @jc-co1ck
    @jc-co1ck Рік тому

    thanks for explanation, this video really help me to understand the more about the difference.

  • @antygona-iq8ew
    @antygona-iq8ew Місяць тому

    Love your approach.

  • @mabl4367
    @mabl4367 2 роки тому

    Great video!
    In the last example, would it not be better to remove all filters on the dimCustomer table and not just on Customer Name that may not even be unique? There may still be a filter on customer no or customer id or something.

    • @HowtoPowerBI
      @HowtoPowerBI  2 роки тому +1

      if you would add a further breakdown to the visual (for example customer segment) it would lead to a different result (% of overall total vs subtotal) .. just depends on what you are looking for -> work with the minimum number of columns to reach your goal

  • @nash_life
    @nash_life 6 місяців тому

    Your are the best BAS. Just what I need.

  • @abdou5554
    @abdou5554 Рік тому

    Thanks Man

  • @pavankumar-hw6zb
    @pavankumar-hw6zb 2 роки тому

    Great great content thankyou so much

  • @SuperiorSky7
    @SuperiorSky7 Місяць тому

    Many thanks 🔥

  • @jayeshsuthar9198
    @jayeshsuthar9198 2 роки тому

    Great video

  • @rajnishrajput2367
    @rajnishrajput2367 2 роки тому

    Hi Bas
    Thanks for great videos, you are helping the community with such wonderful videos
    I have a query for calculating dax
    I need to calculate average of a quarter (1st for eg) of last 5 years. The data is pretty simple just a set of dates table and volume
    Thanks in advance

    • @HowtoPowerBI
      @HowtoPowerBI  2 роки тому +1

      thx Rajnish - maybe something like this ? ->
      VAR CurrentYear = MAX(dimDate[Year])
      VAR Last5Years =
      CALCULATETABLE(
      VALUES(dimDate[Year]),
      dimDate[Year]=CurrentYear-4
      )
      VAR Result =
      AVERAGEX(
      Last5Years,
      [Total Sales]
      )
      RETURN
      Result

    • @rajnishrajput2367
      @rajnishrajput2367 2 роки тому

      @@HowtoPowerBI
      Thanks Bas for quick reply. Really appreciate it
      Sorry, my question was ambiguous.
      Actually, I need avg of 1st qtr of 2021, 1st qtr of 2020, 1st qtr of 2019, 1st qtr of 2018, 1st qtr of 2017 (last 5 years) and similarly for month and day.

  • @azntbooi
    @azntbooi 2 роки тому

    I subbed instantly.

  • @ugi5057
    @ugi5057 2 роки тому

    Please do you have some LinkedIn Learning trainings available? Thank you!

  • @divyab534
    @divyab534 22 дні тому

    thanks for this video
    i have a query on while calculating average sales it has been mentioned there is filter context which was not there before . can anyone clarify where is the filter context came on customer name ?

  • @user-vv8kp2le5c
    @user-vv8kp2le5c 2 роки тому

    Thank you for your vidoes!

  • @TalhaAhmed..
    @TalhaAhmed.. 8 місяців тому

    Hello, your videos are always very helpful...
    Can you help me with the day to day % change. I was trying to do this for the share price analysis.

    • @HowtoPowerBI
      @HowtoPowerBI  8 місяців тому

      sure, think this will help get you there ua-cam.com/video/I8Y5fBGwqeQ/v-deo.html

  • @inabuse
    @inabuse 21 день тому

    In the calculated columns that you used to classify the customers what if you had to have a slicer by product and the class of client had to change depending what product you select? Everything I read says that calculated columns are static and calculated when the table is built but you can't use a measure has the first columns of a matrix so I can't think of a way to resolve this.

  • @mohitupadhayay1439
    @mohitupadhayay1439 Рік тому

    Bruv you need to go a long way in making DAX playlist.
    I'm very confused about KEEPFILTERS VS ALL(ALLSELECTED). Messed up my brain!

    • @HowtoPowerBI
      @HowtoPowerBI  Рік тому

      :) let’s see have a look here: ua-cam.com/video/rvpKSH3zRcg/v-deo.html

  • @shrikantbadge3978
    @shrikantbadge3978 2 роки тому

    Thanks a lot man

  • @Jamie-gu7ib
    @Jamie-gu7ib 2 роки тому

    Clear explaination! Thanks sensei

  • @matteogalfano
    @matteogalfano Рік тому

    Could you make a video showing how to create a stock price variation line chart that always start on 100% doesn’t matter the start date you select in the slicer?

  • @azwarmzafar
    @azwarmzafar 8 місяців тому

    Such a golden video! Thanks a million.

  • @TheBallboy2010
    @TheBallboy2010 2 роки тому

    I still cannot get my head around this. So I started tampering with the same expression and when I applied the same code but without the calculate the same numbers were returned for customers regardless of whether I used Allcustomers or just Customers. It seems that the row context of fctsales[sales], which is a calculated column, overrides the preceding row context on customer, that is Allcustomer behaves the same as customer alone. If you could please clarify this would appreciate it.

  • @parahiamin6765
    @parahiamin6765 2 роки тому

    IMHO understanding row context, how filters flow from dimension tables to the fact table through relationships to create subsets how the CALCULATE function creates context transition are key aspects when learning DAX.

  • @eli57398
    @eli57398 Рік тому

    Hi I have a power bi question. My rows are different places and my columns are different toys sold at those places. I want to measure a specific toy and check what they did in Q1 and Q3 in year 2021 and next to it before the next toy I want to see Q1 and Q3 year 2022. However when i do that the 2022 only starts after all the quarters of the previous year is filled how do I put both years together as a measure to see If I am profitable?

  • @MrHorzel
    @MrHorzel Рік тому

    9:30 - How does the calculate function 'know' that it's by 'Customer Name' and not by e.g. 'Customer Segment' or 'City'?

  • @normandtousignant1754
    @normandtousignant1754 2 роки тому

    Good essentials wrap up

  • @mehdihammadi6145
    @mehdihammadi6145 2 роки тому

    And another very good one. Thanks for sharing Bas

  • @ofentsekoolopile4811
    @ofentsekoolopile4811 Рік тому

    Great video Bas !

  • @PeterKontogeorgis
    @PeterKontogeorgis 2 роки тому +1

    Killer content as usual Bas. If only video's like this were around when I started trying to learn Dax!!!

    • @HowtoPowerBI
      @HowtoPowerBI  2 роки тому +1

      Thank you so much Peter, that's really nice to here! 😊

  • @sahmedalee
    @sahmedalee 2 роки тому

    Your channel is underrated

  • @raeesahamed7734
    @raeesahamed7734 2 роки тому

    Nice one Bas bro!

  • @JohnSullivan1
    @JohnSullivan1 2 роки тому

    Great video!

  • @keagankemp6275
    @keagankemp6275 2 роки тому

    Thanks for this I have no more compliments for you anymore lol, you are now officially powerbi legend lol

  • @user-of5sl3jx9y
    @user-of5sl3jx9y 8 місяців тому

    This video should be used by MICROSOFT as reference .....for me dax was like a rocket science ....but after watching this video its so easy....thank u so much

  • @enzozonta9615
    @enzozonta9615 Рік тому

    Please make a video about APIs!
    I have too much data without PBI connections (as Google sheet, we use Zoho mail). And it has been a painful journey to work like this lmao

  • @klebersanto50
    @klebersanto50 8 місяців тому

    Hello Bas, thanks for your videos, I learned so much. Can you share also the name of the cream or hair product you use in your hair? Its really nice. 😊

    • @HowtoPowerBI
      @HowtoPowerBI  8 місяців тому +1

      haha lol! of course 😉 .. Layrite original pomade, spray, and beard oil

    • @klebersanto50
      @klebersanto50 8 місяців тому

      ​@@HowtoPowerBImany thanks Bas ❤🎉 I have already requested 😂

  • @user-wx3dn3il2f
    @user-wx3dn3il2f 2 роки тому

    amazing

  • @ankithsimha3171
    @ankithsimha3171 2 роки тому

    Is it possible we can show Top 5 and Bottom 5 sales in one chart. If yes how. Please make a video on this
    Thanks in advance

  • @redforestx7371
    @redforestx7371 10 місяців тому

    Amazing guide!

    • @HowtoPowerBI
      @HowtoPowerBI  10 місяців тому +1

      Glad it was helpful!

    • @redforestx7371
      @redforestx7371 10 місяців тому

      @@HowtoPowerBIVery! Already appling the knowledge :>

  • @wwpharmacist
    @wwpharmacist 7 місяців тому

    Wunderbar 👍
    Super
    Bas🎉
    Vielen Dank