Debug DAX using Variables in Power BI

Поделиться
HTML-код
  • Опубликовано: 22 май 2018
  • In this video, Marco Russo, from SQL BI, joins Patrick to look at how you can debug DAX using variables in Power BI. Marco helps to break down a DAX measure and show how you can see the results as you build it up to find where the problem is.
    SQL BI
    sqlbi.com
    DAX Formatter
    www.daxformatter.com/
    DAX Studio
    www.sqlbi.com/tools/dax-studio/
    LET'S CONNECT!
    Marco Russo
    / marcorus
    Guy in a Cube
    -- guyinacube.com
    -- / guyinacube
    -- / guyinacube
    -- Snapchat - guyinacube
    -- / guyinacube
    **Gear**
    Check out my Tools page - guyinacube.com/tools/ #powerbi #guyinacube
  • НаукаНаука

Комментарии • 164

  • @KarineLago
    @KarineLago 6 лет назад +25

    Wowww! With Marco Russo! Amazing content, Patrick!

    • @GuyInACube
      @GuyInACube  6 лет назад +4

      Thanks for watching Karine! We will need to get Marco back sometime.

    • @gulhermepereira249
      @gulhermepereira249 4 года назад

      ​@@GuyInACube please do it :)

  • @arefin82
    @arefin82 5 лет назад +4

    Two legends. This is one of the most educative and helpful tips for me. Trust me this video just changed my view of writing DAX for my entire life. Cool job Patrick and Marco.

  • @doshanriches1
    @doshanriches1 3 года назад

    Marco Russo and Patrick, you guys have opened up the horizon for so many of us non-CS trained professionals to just jump into the DAX bandwagon..thank you so much!

  • @Kevin-pt7rq
    @Kevin-pt7rq 2 года назад

    Posted 3 years ago but still relevant today. Thank you so much!

  • @luizaoancea7217
    @luizaoancea7217 6 лет назад +2

    Awesome video! Brilliant to have Marco Russo on Guy in a Cube!

  • @andrecavasotero6234
    @andrecavasotero6234 6 лет назад +2

    WOW! What a pleasant surprise. There is always something to learn from Marco Russo. Great video and great class.

  • @timtunbridge
    @timtunbridge 6 лет назад +1

    Great seeing you guys team up and a great subject too. Thank you!

  • @hugogradvohl1549
    @hugogradvohl1549 5 лет назад

    I began to watch this channel a few days ago, and I learned a lot. I tried to learn DAX from the Microsoft documentation and I understood it. DAX is pretty understandable when short. However, when complex enough, it becomes unreadable. And then this video, with great tips and ways of building your DAX code. I think the idea behind DAX was to permit users to calculate mesure in a line, with two or three other functions. It reminds me of python because in a way, if you are not following typing rules you won't be able to understand your own code. I will follow the convention you used in your video and create variable when needed. I will be able to write DAX code thanks to you. You are doing a great job. Thank you!

  • @patolobos8266
    @patolobos8266 6 лет назад +50

    We need a debugger in PBI Desktop, with a DAX Formatter, breakpoints (variables) and the ability to output the debugger to another screen just like in Visual Studio or SQL Management Studio. I have the privilige to know Marco, the PBI team should hear him, not only by his expertise, but also because of the massive feedback he gets from user all over the world.

    • @reubenanderson2725
      @reubenanderson2725 6 лет назад

      I'm assuming it would be really difficult to write, or the PBI Team, or SQLBI themselves would have done it by now.
      ?

    • @npmnpm5501
      @npmnpm5501 6 лет назад +2

      pato lobos it is a road map after all. PBI team have feature selection that have to deploy on monthly basis. If you ask me we need more than ever intellisense on advanced power query editor.

    • @goldwhispers
      @goldwhispers 6 лет назад

      create an idea and people can vote on it? ideas.powerbi.com/forums/265200-power-bi-ideas

  • @scottpowell5205
    @scottpowell5205 6 лет назад

    This is one of the best DAX videos I've ever seen...I'll be putting this to use immediately. Thank you!

  • @javiergonzales6118
    @javiergonzales6118 6 лет назад +7

    I will start using variables in my DAX code as of today!!! Great video Patrick. Marco is the DAX master 👍

    • @GuyInACube
      @GuyInACube  6 лет назад

      Excellent! Thanks for watching Javier! 👊

  • @saral.martin6816
    @saral.martin6816 3 года назад +2

    You guys are great together. Perfect tutorial and super useful.

  • @dasrotrad
    @dasrotrad 5 лет назад +2

    Wow! Great video. Masterfully done. You guys "blew the ceiling away ...and the crowd calls out for more."

    • @GuyInACube
      @GuyInACube  5 лет назад +1

      haha thanks Robert! We are looking at doing more like this. And to collaborate more with Marco and Alberto.

  • @gazoller
    @gazoller 6 лет назад

    Just discovered your channel... awesome, can't wait to view the rest of your content!

  • @vida1719
    @vida1719 6 лет назад

    Amazing lesson on debugging DAX with Marco

  • @rerangelt
    @rerangelt 6 лет назад +10

    wow, this was an opening eyes content! oh man, I was Dax blind. thanks. You should do more videos of this kind

    • @GuyInACube
      @GuyInACube  6 лет назад

      We agree Rafael! Happy to hear you learned something from it. Thanks for watching!

    • @andrevioti
      @andrevioti 4 года назад

      It is amazing This website

  • @tanababa
    @tanababa 6 лет назад +1

    Another WOW from me :-) and thank you for bringing Marco!

  • @fboucheros
    @fboucheros 6 лет назад +1

    Great debugging session. Thank you for sharing.

  • @ruvinisamanthika5700
    @ruvinisamanthika5700 2 года назад

    Great video Patrick & Marco

  • @IgorGeorgeAbdo
    @IgorGeorgeAbdo 6 лет назад +2

    It's perfect!!!!! Create a Playlist!!!
    Marco's knowww!!

  • @akshaynm
    @akshaynm 5 лет назад

    Many Thanks Patrick and Marco. Indeed a great information on Debugging DAX.!!

  • @MrVinayBN
    @MrVinayBN 4 года назад +2

    I have just started to learn dax and I have found a great place to improve my skills! Thanks a lot guys!

    • @GuyInACube
      @GuyInACube  4 года назад +1

      Awesome! Love it. Welcome to the cube! 👊

  • @truevaluebusinessintellige6146
    @truevaluebusinessintellige6146 6 лет назад

    We love Marco! I recommend getting one of their remote consulting packages and they will answer all of you DAX questions.

  • @jonathanstagg2861
    @jonathanstagg2861 5 лет назад

    Awesome video - thanks guys for the tips on using variables.

  • @jameswar12
    @jameswar12 6 лет назад +1

    Very helpful. Thanks for doing a video with Marco. Would love to see more videos with DAX tricks!

    • @gFowmy
      @gFowmy 6 лет назад +1

      Brilliant!
      Keep them coming

    • @GuyInACube
      @GuyInACube  6 лет назад

      As would we :) Thanks for watching James!

  • @uniQue_XL
    @uniQue_XL 6 лет назад +1

    Marco the king of DAX.
    Great video.
    Big👍up!

  • @rustice2
    @rustice2 6 лет назад +1

    This guy is a DAX monster, way to go, Marco!

    • @GuyInACube
      @GuyInACube  6 лет назад +1

      Yes he is. We love working with him!

  • @Yi5Zhou
    @Yi5Zhou 5 лет назад

    Nice to see Marco

  • @asjones987
    @asjones987 6 лет назад +3

    Loved having Marco Russo on the video...do one with him on DAX Studio and one on VertiPaq Analyzer. Need to learn DAX Studio and the VertiPaq Analyzer is is so cool but not well known....

    • @GuyInACube
      @GuyInACube  6 лет назад

      Thanks for the feedback Alan! Marco is awesome! I put those on the list :)

  • @abigi4me
    @abigi4me 4 года назад

    Great video and great learning
    Thanks Patrick

  • @Mrugankjoshi
    @Mrugankjoshi 3 года назад

    Thank you guys for opening the door to a whole new world of better DAX'ing!

  • @franreed5382
    @franreed5382 5 лет назад

    Just what I wanted to know. Thank you Patrick and Marco.

    • @GuyInACube
      @GuyInACube  5 лет назад

      Great to hear! Thanks for watching Fran!

  • @dianpriyambudi
    @dianpriyambudi 4 года назад

    Love it! Thanks to both of you!

  • @sebastiendebosscher
    @sebastiendebosscher 6 лет назад +6

    Great video, these "best practices" videos are very educational, especially for self-taught people! Applicable to all the reports I make...

    • @GuyInACube
      @GuyInACube  6 лет назад

      Glad this hit home for you. We want to do more videos like this.

    • @tarcisiodeoliveira1140
      @tarcisiodeoliveira1140 2 года назад

      @@GuyInACube do we have a best practices playlist created?

  • @hugobarrios4992
    @hugobarrios4992 5 лет назад +1

    Worked for me and changed the way I work with powerpivot now!!! Thanks!

    • @GuyInACube
      @GuyInACube  5 лет назад

      Love it! Thanks for watching Hugo. 👊

  • @mukuldevbisht2672
    @mukuldevbisht2672 5 лет назад +3

    awesome content.......Keep posting these kind of collab. very informational. :)

  • @jyothishbabu7146
    @jyothishbabu7146 3 года назад

    Ohh man..this is near to magic..I was having the exact same scenario it took 25+seconds to load the table...after using variables it came down 3.5 Seconds . Thanks guys.. looking forward for more videos

  • @tamare2002
    @tamare2002 5 лет назад +1

    Great learning tip for me today. You made my day folks

    • @GuyInACube
      @GuyInACube  5 лет назад

      Woot! Glad to hear that. Thanks for watching! 👊

  • @yoshihirokawabataify
    @yoshihirokawabataify 6 лет назад

    Nice, VAR and RETURN clear DAX.
    Thank you, nice tips, nice session, and nice movie

  • @dmatthieu2
    @dmatthieu2 5 лет назад +1

    This is very good. It's a much cleaner and structural approach. Thanks guys

    • @GuyInACube
      @GuyInACube  5 лет назад

      Excellent! Most welcome. 👊

  • @1yyymmmddd
    @1yyymmmddd 5 лет назад

    Great tutorial ! Thank you.

  • @sreyashmantry3340
    @sreyashmantry3340 5 лет назад +1

    Thanks Marco. My concepts of using DAX are better now. I surely will have more questions when I start practicing

    • @GuyInACube
      @GuyInACube  5 лет назад

      Awesome! Glad it was helpful. 👊

  • @raz8657
    @raz8657 5 лет назад

    We love you guys!

  • @yashasvityagi
    @yashasvityagi 3 года назад

    Awesome Marco !

  • @javierguerrero9253
    @javierguerrero9253 6 лет назад

    It is great brilliant!, You should do more videos of this kind..! Thanks

  • @EmersonCarvalhodeSouza
    @EmersonCarvalhodeSouza 6 лет назад +2

    Patrick, I aggree with you: brilliant!

  • @kingingway3308
    @kingingway3308 6 лет назад

    Wow! Absolutely brilliant!!

  • @hareuneasfour964
    @hareuneasfour964 6 лет назад

    really really good video! keep 'em coming ;)

  • @DIGITAL_COOKING
    @DIGITAL_COOKING 4 года назад

    Still one of the best DAX video for me👍

  • @olivierswerdlow2059
    @olivierswerdlow2059 4 года назад

    good Job!
    a debug object will be excellent to present all possible preview

  • @gyorgybalogh3194
    @gyorgybalogh3194 6 лет назад +1

    Brilliant video!Good job!

  • @alejandroparodiherz
    @alejandroparodiherz 6 лет назад +1

    Incredible!!!... I will go back to the drawing board to map this as a high priority to learn more about. Thanks a lot for the eye opening!

    • @GuyInACube
      @GuyInACube  6 лет назад

      Woot! Glad to hear it was useful for you Alejandro. 👊

  • @HDREconomist
    @HDREconomist 6 лет назад +1

    Awesome video, big fan!

  • @maciejolejnik6706
    @maciejolejnik6706 5 лет назад +1

    It is very useful explanation. Thanks !

    • @GuyInACube
      @GuyInACube  5 лет назад

      Glad it helped. Thanks for watching 👊

  • @nazimscr
    @nazimscr 6 лет назад

    Great trick!...I am sure it will help many people in debugging process..

  • @lemonslice7286
    @lemonslice7286 6 лет назад +2

    This is awesome thanks guys.

    • @GuyInACube
      @GuyInACube  6 лет назад

      Most welcome! Thanks for watching!

  • @mehdihammadi6145
    @mehdihammadi6145 6 лет назад

    What to say ? it's crystal clear !
    Thanks Guys

  • @denglishbi
    @denglishbi 6 лет назад +1

    Awesome, amazing as always!

    • @GuyInACube
      @GuyInACube  6 лет назад

      Thanks Dan! very much appreciated. Are you going to be at Business Application Summit or PASS Summit? It has been a while.

  • @johnmatta9577
    @johnmatta9577 6 лет назад

    The Marco Russo...Godfather of DAX

  • @dbradley9078
    @dbradley9078 6 лет назад

    Great video!

  • @wynhopkins4023
    @wynhopkins4023 6 лет назад

    Great. Thanks for the insight

  • @51pcmurphy
    @51pcmurphy 2 года назад

    You guys are to the point always. I appreciate it. Have you created a UDEMY training video? I would buy it.

  • @darrannorman6185
    @darrannorman6185 6 лет назад

    Very, very, very useful. Thank you

  • @pratikfutane8131
    @pratikfutane8131 6 лет назад

    Great Concept!!

  • @silviab5579
    @silviab5579 6 лет назад

    Great! Thank you very mucho to you both.

  • @larsterlecki9003
    @larsterlecki9003 6 лет назад

    So easy, but really effective! Like it

  • @mnowako
    @mnowako 5 лет назад

    Amazing! Thanks!

  • @taekr
    @taekr 6 лет назад +1

    Patrick, I am assuming that you pretend that you did not know it to make this video. Anyways, it's a great video. Now I can pinpoint to this video instead of explain that concept myself. It is a great example. More like this please!! and Thank you, Macro. Your book is like a bible. :)

  • @absolutedisgrace
    @absolutedisgrace 6 лет назад +4

    Variables are awesome. They are especially useful for calculate statements to get in filter information that a calculate doesn't normally accept. Calculate + Filter is bad! Avoid where possible.

  • @bcippitelli
    @bcippitelli 5 лет назад

    Sei un maestro Marco!

  • @pappukumarsharma1383
    @pappukumarsharma1383 2 года назад

    Insightful info

  • @josericardo3015
    @josericardo3015 6 лет назад +1

    Fantastic Guys!

    • @GuyInACube
      @GuyInACube  6 лет назад

      Thanks Jose! Appreciate it.

  • @AdiCristea
    @AdiCristea 6 лет назад

    I see Marco, I hit Like, simple as that... (haven't even finished watching the video).

  • @mshparber
    @mshparber 6 лет назад +1

    Very useful, Thanks a lot!

    • @GuyInACube
      @GuyInACube  6 лет назад

      Very welcome! Thanks for watching Michael!

  • @alex2ad
    @alex2ad 4 года назад

    Beautiful!

  • @medcomstar
    @medcomstar 6 лет назад +2

    Awesome... thank u guys.. 🤟

  • @Saur
    @Saur 5 лет назад +1

    OMG DAX just clicked. This style makes SO much more sense!

    • @GuyInACube
      @GuyInACube  5 лет назад

      Right?!? It is very awesome.

  • @mailmerink
    @mailmerink 3 года назад

    Thank u Patrick.🙏

  • @anish966310
    @anish966310 6 лет назад +2

    Amazing.. Most productive video that I have watched in recent times, I could use this in my daily DAX development. Thanks Marco!! I have a quick question though, can we debug or evaluate the same measure using DAX Studio ? For DAX formatting, I prefer DAX Studio than a website.

    • @GuyInACube
      @GuyInACube  6 лет назад

      Thanks Anish! You can definitely use DAX Studio to evaluate the same measure. it lets you run DAX statements, so no reason it wouldn't work.

    • @jagadeeshbi5703
      @jagadeeshbi5703 6 лет назад

      Very nice

  • @abhinavkumar2354
    @abhinavkumar2354 3 года назад

    GUYS you are champs par excellence

  • @rajkumarrajan8059
    @rajkumarrajan8059 3 года назад

    This is amazing

  • @salosteysv
    @salosteysv 6 лет назад +1

    Wow! It is great brilliant!

  • @user-zn8wy6pr3r
    @user-zn8wy6pr3r Год назад

    thanks guys!!! :)

  • @PcGeek04
    @PcGeek04 6 лет назад

    Sic! Thank you!

  • @tarcisiodeoliveira1140
    @tarcisiodeoliveira1140 2 года назад

    Thank you

  • @excelscientist5041
    @excelscientist5041 5 лет назад +1

    It is too cool, that i can use VBA/Excel expertise in Dax as well! , thanks for the amazing video and knowledge sharing. GIC

  • @AliTwaij
    @AliTwaij 5 лет назад

    Thankyou brilliant

  • @JanisSturis
    @JanisSturis 6 лет назад

    One of the best videos this year

  • @joaquimcosta952
    @joaquimcosta952 6 лет назад

    Amazing!!!!!

  • @concert_music
    @concert_music 5 лет назад

    Essential viewing!

  • @abhishekstatus_7
    @abhishekstatus_7 5 лет назад

    Thanks a lot guys for sharing the amazing tricks and patterns for debugging dax and with the help of dax formatter how we can see the codes in a beautiful ways , Just one question over here which i wanted to know Can we assign colors to numbers in a variable . For example if I am selecting number 1 my dashboard color for specific segment will become green or red ......
    Thanks in advance!!

  • @ahmedal-dossary4386
    @ahmedal-dossary4386 5 лет назад

    Amazing

  • @3danim8r1
    @3danim8r1 4 года назад

    Nice one.......

  • @arupchakraborty4680
    @arupchakraborty4680 3 года назад

    Hi Patrik, I am a newbie in PowerBI. However, I think using variables are taking some extra memories. Is there any performance effect if we use multiple variables?

  • @patriciocahue3272
    @patriciocahue3272 6 лет назад

    Patrick and Marco, thank you for the great video! I use the DAX Formatter a lot and it makes my code look very professional, but more importantly, it helps with the debugging. Please check out SQLBI site or get your hands on "The Definitive Guide to DAX" book by Marco and Alberto, guaranteed to make you a DAX geek, or nerd.

  • @rrrprogram8667
    @rrrprogram8667 6 лет назад

    Marco is macho man of daxx....

  • @sunilnallagonda1389
    @sunilnallagonda1389 4 года назад

    Can we calculate difference between two tasks "task text" column. One tasktext will referred as released date and other will be considered as Closed date. Need to calculate difference between release date and close date based on selection of two tasks in the same slicer.

  • @KawanExcel
    @KawanExcel 5 лет назад

    Cool

  • @vinestim
    @vinestim 3 года назад

    Hi Guys In a Cube...I love your channel!! Quick question. I have a table (permissions table) that holds all my company hierarchy and user permission to specific regions based on the user's system loginID. Would you have a video that takes the computer's login ID and use it in a variable to filter data down? I want to use my permission table to implement security and filter data so users can only see data associated with the records they are assigned within my permissions table

  • @naimmulla1506
    @naimmulla1506 5 лет назад

    Pls do more videos on DAX pls pls.....