DAX Fridays

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ก.ย. 2024

ความคิดเห็น • 96

  • @stevewilliams9753
    @stevewilliams9753 3 ปีที่แล้ว +3

    Cool trick. Is it possible to get a copy of the .pbix file? Thanks.

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว +1

      Didn't I share it? Sorry, on my way!

    • @JohnKpl
      @JohnKpl 3 ปีที่แล้ว

      @@CurbalEN Cool! I also looked for this pbix file. Can you share it with us? :)

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว +1

      It is in the download center at curbal.com (look in the DAX folder)

    • @lawrenceliew5812
      @lawrenceliew5812 2 ปีที่แล้ว

      @@CurbalEN hi Ruth could you send the link to this PBI? Can't find it somehow, thanks!

    • @lawrenceliew5812
      @lawrenceliew5812 2 ปีที่แล้ว

      Found it. Thanks!

  • @MatthiasK-qp9bf
    @MatthiasK-qp9bf 3 ปีที่แล้ว +4

    Some weeks ago I pitched the very same question at guyinacube. Answer: Not possible. Now Ruth shows us. Amazing!! LOVE IT!

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว +3

      The power of the community 😊

  • @PedroCabraldaCamara
    @PedroCabraldaCamara 3 ปีที่แล้ว +1

    Dear Ruth, after following you for more than 2 years, i find your enthusiasm in every video fantastic. Please don't change!! 😁 (another great video by the way)

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว +1

      Thanks for putting up with me for so long!! 😊

    • @PedroCabraldaCamara
      @PedroCabraldaCamara 3 ปีที่แล้ว

      @@CurbalEN lol...it's really the pleasure of us all

  • @JackOfTrades12
    @JackOfTrades12 3 ปีที่แล้ว +5

    You can also use this technique to hide and show measures in something like a line chart. To do multi-select, in each measure you add a variable that checks if the status is filtered in, and return blank or 1 to the variable. You then multiply your calculation by the variable (or do an if statement), and it will return blank or a value.
    I used this when I had to many measures on a line chart.

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว +1

      How clever is that?? I need to test and do a video:)

  • @bradj229
    @bradj229 3 ปีที่แล้ว +2

    Very cool! Knowing DAX is so critical to Power BI's flexibility!

  • @eddyjawed4871
    @eddyjawed4871 2 ปีที่แล้ว

    I love your accent I just watch your videos to hear you talk, so entertaining.

    • @CurbalEN
      @CurbalEN  2 ปีที่แล้ว +1

      😂😂 why not? Check my early videos when I was filming at 11 pm. People always commented how they enjoyed my voice !

    • @eddyjawed4871
      @eddyjawed4871 2 ปีที่แล้ว

      @@CurbalEN ❤

  • @slowchrno
    @slowchrno ปีที่แล้ว

    This was just what I needed, Ruth! Thanks so much!

    • @CurbalEN
      @CurbalEN  ปีที่แล้ว

      Excellent!!

  • @Amr-Ibrahim-AI
    @Amr-Ibrahim-AI 3 ปีที่แล้ว

    Thanks Ruth for sharing this tip.
    It is just cool to pick an Austin dataset for presenting in Austin User Group!
    I have always found it useful to make it as relevant as possible to the audience when it comes to Power BI!
    You took that to the next level :)

  • @swapnilgiram3940
    @swapnilgiram3940 2 ปีที่แล้ว +1

    Very cool trick, found it useful. But a limitation I experienced with it is that total records in the table remained same, they were not filtered out. Is it possible that table will show rows only for Green when Green is selected on slicer?

  • @anastasianikolovski8337
    @anastasianikolovski8337 3 ปีที่แล้ว

    Great solution and works well with so many scenarios! Thank you for sharing. Truly inspiring!

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว

      😊😊

  • @dannyhometown
    @dannyhometown 3 ปีที่แล้ว

    Happy Friday Ruth, Bravo! This is really amazing solution. Mark! Thanks for your sharing. 🎉🎊

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว

      Yey!!! Happy to be able to still surprise you :)

  • @lynniseharrington2476
    @lynniseharrington2476 ปีที่แล้ว

    Thank you! This was very useful and thank you for the pbix files. I will definitely be subscribing to your site

  • @frankgovers8420
    @frankgovers8420 3 ปีที่แล้ว

    Hi Ruth, great, this is a part of my powerBI advanced level 3 session. In Dutch.
    Keuze = IF(ISBLANK(SELECTEDVALUE(Resultaattype[Type]));"maak keuze";SELECTEDVALUE(Resultaattype[Type]))
    maak meting die resultaat laat zien:
    Resultaat = SWITCH(SUM(Resultaattype[Code]);1;[Kosten];2;[Omzet];4;[winst];[omzet])
    Or
    GekozenValuta = IF(HASONEVALUE(tblValuta[Valuta]);VALUES(tblValuta[Valuta]);"EURO")
    TotalSales Valuta = IF(HASONEVALUE(tblValuta[Valuta]);SWITCH(TRUE();
    [GekozenValuta] ="EURO";FORMAT([TotalSales]*VALUES(tblValuta[Koers]);"€ 0.00");
    [GekozenValuta] ="BPND";FORMAT([TotalSales]*VALUES(tblValuta[Koers]);"£ 0.00");
    [GekozenValuta] ="ZWFR";FORMAT( [TotalSales]*VALUES(tblValuta[Koers]);"F 0.00");
    [GekozenValuta] ="DOLLAR";FORMAT([TotalSales]*VALUES(tblValuta[Koers]);"$ 0.00")
    );BLANK())
    And then create variabels from this

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว

      Thanks for sharing;)

  • @Themusiic09
    @Themusiic09 3 ปีที่แล้ว

    Just simply beautiful, thank you so much!

  • @Suman-vv5gv
    @Suman-vv5gv ปีที่แล้ว

    Thanks, I have learned today how to add filters on Measures.

  • @mikej62
    @mikej62 ปีที่แล้ว

    Hi! Do you have a video with a similar example but for multiple slicers? Here you have one slicer but in my use case I have 3, multi-select but if I can get it to work for single select that will be fine also. Tia!

  • @gulhermepereira249
    @gulhermepereira249 3 ปีที่แล้ว

    Great trip trick, Ruth 👏🏻

  • @etm3398
    @etm3398 ปีที่แล้ว

    I love this technique. However, I am running into a bit of trouble similar to what I see @10:13 where you have green selected but no total is bottom of the table.
    For me, I have "Top20" and "Others" in filter. And, when I have nothing or "Top20" selected, I get a total at the bottom. But, when I have "Others" selected, the total is like in your table.
    Is there a way to fix this?
    BTW, I was able to get the total to show for "Top20" only after I added the measure to the visual filter and selected "is not blank".
    Edit, ah I figured it out. Just use the regular measure in the table while having the "Measure by Slicer" in the table filter pane works.

  • @arturreter8211
    @arturreter8211 3 ปีที่แล้ว +1

    Hello, is it possible for this slicer to filter table? if you choose green then table will show records with green only? And is there a way to choose all slicer fields and show them all in table? Thanks!

  • @vigneshwarsriram3733
    @vigneshwarsriram3733 2 ปีที่แล้ว

    Hey Ruth! I have made a transition successfully from a software engineer to a Power BI developer. All the credit goes to you as I started learning Power BI, from the first video of yours till now ❤️ Keep going!
    I have a requirement of taking the measure values which are decimals, and show it as a range slicer. When I select a range in the slicer, the visual gets filtered according to the selected range of values. Is that possible?

  • @YazanWael
    @YazanWael 3 ปีที่แล้ว

    Nice application 👍
    I'd suggest setting up the disconnect table to include min & max limits instead of (1,2,3...) and use these limits with SELECTEDVALUE in the measure.

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว +1

      Yes, the thing is, I want to bucket to be calculated dynamically, but I didn't get that far due to lavknof time ;)

  • @juansepowerplatform
    @juansepowerplatform 3 ปีที่แล้ว +2

    Thanks, this is very good real life example where Powerbi can add value with very little effort, if you understand DAX 😂

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว

      Yes, you need to know some DAX ;)

  • @savianasworld2411
    @savianasworld2411 3 ปีที่แล้ว

    hI Curbal...Your Dax formula has help me alot...can u pls explain in your table view ...how to filter only the slicer selection keeping both feilds in your table ie # trips and also # trips by slicers but showing in the table only the filtered # trip by slicer...thanks

  • @kennethstephani692
    @kennethstephani692 3 ปีที่แล้ว

    Great video!!

  • @ljubicar1987
    @ljubicar1987 3 ปีที่แล้ว

    Very nice video, great work!👍

  • @ulduzmammadova2288
    @ulduzmammadova2288 3 ปีที่แล้ว

    Hello! I need your help( . Is it possible to do dynamic abc, xyz analysis in power bi, but I should use slicer for categories(a,b,c). Please help

  • @christopherforbes5195
    @christopherforbes5195 3 ปีที่แล้ว

    Great video Ruth! Is it absolutely necessary to create the variable in this approach? Could you have just used the if/switch statement?

  • @sbokelman9107
    @sbokelman9107 2 ปีที่แล้ว +1

    Where did you get that super cute denim ruffled top?? And thanks for the cool trick.

    • @CurbalEN
      @CurbalEN  2 ปีที่แล้ว

      I got it from my syster, so I don’t know :(
      Got it a long time ago also, not sure you can buy it now.

  • @abhishek9876
    @abhishek9876 3 ปีที่แล้ว

    Thank you for sharing . Great video.

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว

      🥳🥳

  • @rahulmahato6589
    @rahulmahato6589 3 ปีที่แล้ว

    Great video Ruth, I have been following you since ages. I had spent my all day applying your trick . It is working fine for matrix where we can pass the filter condition but cards visual don't get filtered accordingly. Please let me know if you have a solution for that as well .

  • @habsaribanoewati1879
    @habsaribanoewati1879 2 ปีที่แล้ว

    Could you make new table for summary total for each color? is it possible? please answer me 🙏

  • @IssueBoyStefan
    @IssueBoyStefan 3 ปีที่แล้ว

    Disconnected slicers are there for some time, but yep, that's a good one. ;)

  • @bacoji2185
    @bacoji2185 2 ปีที่แล้ว

    Hi @curbal,
    Nice video, really helpfull.
    I only have one concern, is it possible to show all data if the filter is not selected.
    If possible would you like to writing the dax on comment ?

  • @RubenCarlosCalderonValladares
    @RubenCarlosCalderonValladares 3 ปีที่แล้ว +1

    Really nice! A question comes to mind: Is there a way to show more than two results (colors) on the map when selecting 2 o more values on the isolated slicer?
    Thanks in advance!

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว +3

      Try with ISFILTERED or IN , that might do it.

    • @josephmurphy516
      @josephmurphy516 8 หลายเดือนก่อน

      @@CurbalEN Great video but can't seem to get it working with multi-select, are you able to kindly share the DAX code for this please?

  • @RichardOliver
    @RichardOliver 3 ปีที่แล้ว

    Thanks, Ruth. Very useful. Just a thought - could you have left out the 'greater than' conditions in the SWITCH() steps 2 and 3? I thought it evalauated the conditions in order so that the one being < 1,000 would already have been counted before looking at those < 10,000 (i.e. so condition 2 would be for those > 1,000 and < 10,000).

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว

      Yeah, I thought that too, but when I tested it it didn't quite worked as expected. Try it and you will see.

  • @pilarbaldominos2505
    @pilarbaldominos2505 3 ปีที่แล้ว

    Hi Ruth, I have a question. Why are you using the limit field on the switch formula in stead of the status name (ie: orange,red,green...etc) Is it related with performance?
    Thanks for the video I am sure I will be able to apply in some of my current project!!

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว

      Great question! You can't compare text with numbers, try it, you will see!

  • @lastkissba
    @lastkissba 3 ปีที่แล้ว

    Great trick. But what if user select 2 or may be 3 values in slicer? It will not slice it I think?

  • @atiry839
    @atiry839 3 ปีที่แล้ว

    Hello, Thank you for good tips, I tried to bring current month and current week in one slicer by using this tech, but it doesn't work, could you please let me know how I can do this? "I made two columns in my calendar("current week and current month", and put each one in one slicer, and it works when I press "current month" it shows exactly what I want. and when I press "current week" it shows good. but they are in different slicer. I tried to bring both in the same slicer by using your technique, but it is not working. "
    order slicer =
    Var timetotal =[Total Time]
    Return
    If(
    HASONEVALUE('Table'[name])
    ,SWITCH(True(),
    Values('Table'[number])=1 && VALUES('Calendar'[Current Week])="Current Week", timetotal,
    Values('Table'[number])=2 && VALUES('Calendar'[Current Month])="Current Month",timetotal),timetotal)

  • @SpaceTim-sr9lf
    @SpaceTim-sr9lf 3 ปีที่แล้ว

    Pretty cool! I know we are using trips as a rough estimate to determine best time and place to catch a bike. Makes me wonder what the ideal metric would be. Probably available bikes? From the video I don't see that metric but I wonder if we could back into it or at least a relative comparison among stations since we have the start station and end station. Each station could get a -1 for a trip starting there and +1 for a trip ending there. Higher the score the better the chances. Fun to think about! Thanks!

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว +1

      The dataset includes the number of bikes per station, so that should help, check it out!

  • @TEFTEJIb
    @TEFTEJIb 3 ปีที่แล้ว

    Super, thank you , &&
    how to make a dynamic ranks in a slicer¿

  • @powerbinareal
    @powerbinareal 2 ปีที่แล้ว

    Top !

  • @abbielmi9163
    @abbielmi9163 3 ปีที่แล้ว

    Great video Pbix file is it available to look at it?

  • @MrSpiritUAll
    @MrSpiritUAll 3 ปีที่แล้ว

    Great looks and t(r)ips! ✨🥂

  • @paragkhandalkar
    @paragkhandalkar 3 ปีที่แล้ว

    If we need two selections in slicer(for e.g red and orange) then how my dax will look?

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว

      Try isfiltered or IN

  • @jyfjgtyuh
    @jyfjgtyuh 3 ปีที่แล้ว

    Excellent video! you have a small bug: You didn't cover the cases for =1000, =5000.. it should be

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว

      The 1000 is included in the orange button ;)

    • @jyfjgtyuh
      @jyfjgtyuh 3 ปีที่แล้ว

      @@CurbalEN In the #trips by slicer formula, 1 is less than 1000, 2 is more than 1000 && less than 10,000 (same for 3 ). You do not cover the cases where the values are equal to 1000,10,000 . For 50,000 its correct. Look at the video at 8:13.

  • @philipmorgan2302
    @philipmorgan2302 3 ปีที่แล้ว

    Hi Ruth. Enjoy your channel. I have tried to apply this method. it works for the main table on my table. but I am trying to then count and average the results that it returns. This does not seem to work. I am using the method to group floor areas in to "Small, Medium and Large". I then have a calculated column to work out a price per area and it this column I want to average. The measure I sue for this is a divide of the sum by the count, but it ignores the key slicer selection. suggested learning resources?

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว

      Post sample data in the power bi community. Details are important here.

    • @philipmorgan2302
      @philipmorgan2302 3 ปีที่แล้ว

      @@CurbalEN Cheers. Was going to use the Forum next step.

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว

      It is the right way to go, details are needed to answer your question. Enjoy your evening!

  • @leonidiakovlev
    @leonidiakovlev 3 ปีที่แล้ว

    Bravo!

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว

      🥳🥳🥳

  • @ljubicar1987
    @ljubicar1987 3 ปีที่แล้ว

    Could you sometimes make a video about why we need to create a separate table, I am not very clear on that.🙁

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว +1

      In this case, it is easy: you can not use a measure for relationships.

  • @abhishekstatus_7
    @abhishekstatus_7 3 ปีที่แล้ว

    Awesome 🙂🙂🙂

    • @CurbalEN
      @CurbalEN  3 ปีที่แล้ว +1

      Loved it too :)

  • @MercyFromOverwatch2
    @MercyFromOverwatch2 3 ปีที่แล้ว

    You are so grrrrrrreat

  • @juanodonnell
    @juanodonnell 5 หลายเดือนก่อน

    you should use greater or equal than. if the value is 1000 you will lose it.

  • @garyjames2931
    @garyjames2931 2 ปีที่แล้ว

    Didnt work for me. Way way to complicated for a simple filter. Better to prepare al this before even loading into power and dont touch dax measures merged or any of this horrendous witchcraft

    • @CurbalEN
      @CurbalEN  2 ปีที่แล้ว +1

      I completely agree, but if you need it, this is how to do it, that is all :)

    • @garyjames2931
      @garyjames2931 2 ปีที่แล้ว

      @@CurbalEN Yes agree - wel done for finding a solution but it should be so much easier. The idea of PBI is that a user can do these things and not a clever coder like you.

    • @lawrenceliew5812
      @lawrenceliew5812 2 ปีที่แล้ว

      @@garyjames2931 do you have a better solution to filter out measures?