DAX for Power BI Part 2.3 - The Switch Function

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ • 35

  • @robworcester
    @robworcester 2 роки тому +6

    Hi Andrew. I just would like to express my gratitude for what you do here. I have watched around 150 of your videos on ssrs, sql server and power bi. Your way of explaining report builder, sql and databases helped me to learn reporting within 12 months from zero to hero, where I am now one of the most experienced in the team of 12 people of a big logistics company’s BI team. It’s all thanks to you. You are by far the best teacher I ever had who is solely responsible for the incredible pace of me being able to learn all this. Keep up the great work!

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

      Hi Robert, that's so nice to hear! I'm really happy that the videos have helped you so much, congratulations on your success and thank you for taking the time to write such a nice comment!

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

    Hi Andrew, just wanted to say thank you for this brilliant series. Super useful stuff. and as always your way of explaining is just otherworldly. great great material.

    • @WiseOwlTutorials
      @WiseOwlTutorials  3 роки тому

      You're very welcome, thank you for taking the time to leave a comment and for watching!

  • @wayneedmondson1065
    @wayneedmondson1065 3 роки тому +1

    Thanks Andrew. Got behind.. catching up on this excellent series now. Looking forward to more! Thumbs up!!

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

    Thanks, Mr. Owl!

  • @MohamedAhmed-training
    @MohamedAhmed-training Рік тому +1

    Wonderful Teaching Video

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

    Thank you for creating this i learned much topics here

  • @rajeshkumar-fd8sv
    @rajeshkumar-fd8sv 3 роки тому +1

    Very Nice Andrew. Thanks

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

    Thanks Andrew for the excellent quality of your tutorials! I have a suggestion please... Could you kindly include in the description the playlist where videos belong to, that would help getting into the playlist when one finds the video after a search in yt. Thanks again!

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

      Hi Hadi, thanks for the suggestion! Just so you know, you can find a link to the DAX playlist in the end screen of each DAX video and you can find all our playlists from the channel homepage ua-cam.com/users/WiseOwlTutorialsplaylists
      I hope it helps!

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

    Hi Andrew , Great video, Thank you once again. I was searching video or playlist on power query ( data modelling )and power bi service? Please help

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

      Hi! We don't have a series for Power Query or the Power BI Service at the moment, but I plan to have these in the new year!

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

      Yes i will wait @@WiseOwlTutorials

  • @Ronnet
    @Ronnet 3 роки тому

    Would love to have a multi criteria switch function, especially in power query. That would solve so many problems.

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

      Hi! I'm not quite sure if I've understood what you need but you can combine criteria in a DAX Switch function using the && (and) and || (or) operators, for example:
      Category = SWITCH(
      TRUE(),
      Movies[Run Time] < 100 && Movies[Oscar Wins] = 0, "Short Loser",
      Movies[Run Time] < 100 && Movies[Oscar Wins] > 0, "Short Winner",
      Movies[Run Time] < 150 && Movies[Oscar Wins] = 0, "Medium Loser",
      Movies[Run Time] < 150 && Movies[Oscar Wins] > 0, "Medium Winner",
      I'm not sure if that helps.

  • @marnitztaylor9509
    @marnitztaylor9509 3 роки тому +1

    Thanks you!

  • @tejamarneni
    @tejamarneni 3 роки тому

    Hi Andrew, thank you for the amazing Video. Can you please make a Video on Group By in Power BI?

    • @WiseOwlTutorials
      @WiseOwlTutorials  3 роки тому +1

      Hi Teja! We plan to have a video which includes the GroupBy function along with similar functions like Summarize and SummarizeColumns. Thanks for watching!

    • @tejamarneni
      @tejamarneni 3 роки тому

      @@WiseOwlTutorials Thank you Andrew. Looking forward to your videos.

  • @excelvbatrick7308
    @excelvbatrick7308 3 роки тому

    1.How many parameters (value,result) can give in switch function?
    2. Can I use array ( Multiple condition) in value with { } for same result?

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

    How do I use SWITCH(TRUE) to solve this based on the Movies data:
    Create a column using SWITCH(TRUE()) to classify studios as "Small" (produced < 5 films), "Medium" (5-15 films), "Large" (more than 15 films).

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

      Hi! It depends which set of Movies data you're using - this video only has a single table and doesn't include the Studio column. Are you using a version of Movies with a separate Studio table or one with a Studio column in the same table as the films?

  • @trideepnath
    @trideepnath 3 роки тому

    Hi Andrew, For my case i am getting an error for sorting part.. Failed to save modifications to the servers.
    'A circular dependancy was detected :SpocRa[Band],SpocRa[Band Sort],SpocRa[Band]'.. Can you please help?

    • @WiseOwlTutorials
      @WiseOwlTutorials  3 роки тому

      Hi! I'm guessing your [Band Sort] calculated column uses an expression which refers to your [Band] column? And then you're attempting to set the Sort By option for the [Band] column using the [Band Sort] column. As you've discovered, you can't do this. One slightly awkward way to solve this is to create a third column which duplicates the data in the [Band] column, for example:
      Band Sorted = SpocRa[Band]
      You can then use the [Band Sort] column as the Sort By column for the [Band Sorted] column. Not very elegant but it works.
      I hope it helps!

  • @munichandrakuppani8103
    @munichandrakuppani8103 3 роки тому

    Hi Andrew,
    what is Advanced Filter in VBA?
    What is Option Base in VBA?
    How to create more than one column's filter in VBA
    While writing VBA code, what are the best tips in VBA?
    How to improve performance of VBA code?
    Please tell, what are the story of these Questions, please don't skip, please explain?
    Sorry to asked Here

  • @limichael1519
    @limichael1519 3 роки тому +1

    Hi Andy I think u had a haircut 😁