DAX Fridays!

Sdílet
Vložit
  • čas přidán 7. 03. 2019
  • In today's #daxfridays video I will show you how to get selected or multiple values from a slicer.
    To do that, we will use the following functiions:
    1. SELECTEDVALUE: curbal.com/blog/glossary/sele...
    2. ALLSELECTED: curbal.com/blog/glossary/alls...
    3. IN: curbal.com/blog/glossary/in-dax
    Here you can download all the pbix files: curbal.com/donwload-center
    Happy Friday!
    Get Northwind Dataset: • Northwind data source:...
    Link to DAX Fridays survey: bit.ly/2MMM4KK
    SUBSCRIBE to learn more about Power and Excel BI!
    / @curbalen
    ☼☼☼☼☼☼☼☼☼☼
    POWER BI COURSES:
    Want to learn Power BI? How about you take one of our courses? Here you can find the available courses:
    curbal.com/courses-overview
    ☼☼☼☼☼☼☼☼☼☼
    ABOUT CURBAL:
    Website: www.curbal.com
    Contact us: www.curbal.com/contact
    ▼▼▼▼▼▼▼▼▼▼
    If you feel that any of the videos, downloads, blog posts that I have created have been useful to you and you want to help me keep on going, here you can do a small donation to support my work and keep the channel running:
    curbal.com/product/sponsor-me
    Many thanks in advance!Here you can download all the pbix files: curbal.com/donwload-center
    ▲▲▲▲▲▲▲▲▲▲
    Our PLAYLISTS:
    - Join our DAX Fridays! Series: goo.gl/FtUWUX
    - Power BI dashboards for beginners: goo.gl/9YzyDP
    - Power BI Tips & Tricks: goo.gl/H6kUbP
    - Power Bi and Google Analytics: goo.gl/ZNsY8l
    ************
    ************
    QUESTIONS? COMMENTS? SUGGESTIONS? You’ll find me here:
    Linkedin ► goo.gl/3VW6Ky
    Twitter ► @curbalen, @ruthpozuelo
    Facebook ► goo.gl/bME2sB
    #daxfridays #curbal #dax #powerbi #mvp

Komentáře • 195

  • @pradeepviv3672
    @pradeepviv3672 Před 5 lety +2

    Thanks very much Ruth, this has been very useful. I love how your video is simple to understand and follow. Also thanks very much for your community PBIX files. Cant wait to check it out.

    • @CurbalEN
      @CurbalEN  Před 5 lety

      Thanks to you Pradeep for the feedback!
      /Ruth

  • @Unbox747
    @Unbox747 Před 3 lety +1

    I love your videos. It's always so inspiring, it just gave me an idea to solve something that was considered unsolvable.

  • @boul767355
    @boul767355 Před 4 lety

    Great Ruth, finally someone who can explain clearly PowerBI !

  • @josecap12
    @josecap12 Před rokem

    Thanks so much for sharing this solution. I spent hours trying to figure it out in a situation with filters of different time periods on the same column, and it helped me to avoid duplicated sum.

  • @juanignacioXI
    @juanignacioXI Před 4 lety

    Ruth u have always the answers for all my Dax problems, hehe, thanks a lot a gain. You r the greatest teacher ever!

    • @CurbalEN
      @CurbalEN  Před 4 lety

      We are probably working the same paths ;)
      /Ruth

  • @Richkotite1
    @Richkotite1 Před 3 lety

    This for me was the best and most important DAX Power Bi video I have seen. M management likes to look at selective items. This one did it, works great. Thank you

  • @ravindrasarak2007
    @ravindrasarak2007 Před 3 lety

    This helped me a lot. Thank you so much. IN Function is magical!

  • @yaga7406
    @yaga7406 Před 2 lety

    Thanks a lot - I was able to solve many of my problems/questions with you videos. Really appreciate the time you spend sharing!

    • @CurbalEN
      @CurbalEN  Před 2 lety +1

      And your feedback makes it all worth it, thanks!

  • @Xarx42
    @Xarx42 Před rokem

    I just spent quite some time to figure out how to select multiple(!) options and not just one until your video pushed me finally in the right direction. Thank you a lot! :)

    • @CurbalEN
      @CurbalEN  Před rokem +1

      Congrats, i completely understand the feeling :)

  • @nicolassnix
    @nicolassnix Před 3 lety

    Thanks you!! I was needing this solution, and after a whole day of working I got it becouse of you :)

  • @maraujjo
    @maraujjo Před 3 lety

    Great!! I was searching for a week trying to solve this!! You are amazing! Thank you so much!!

  • @avestuart
    @avestuart Před 2 lety +1

    Oh my god, this is a lifesaver. I have a very odd dataset and up against a serous deadline, being able to get selected values from a slicer and then send variables to a dataset based upon those slicer values is incredible.

    • @CurbalEN
      @CurbalEN  Před 2 lety

      Good luck with your project !!

  • @ahmedal-dossary4386
    @ahmedal-dossary4386 Před 4 lety +1

    Awesome trick indeed
    Thanks for sharing your thoughts!

  • @PeachBeef
    @PeachBeef Před 4 lety

    Haha the end there where you got turned around, welcome to half of my day at work! I love your videos so much, you've taught me so so so much.

    • @CurbalEN
      @CurbalEN  Před 4 lety

      😂😂😂 Mine too!!
      /Ruth

  • @andrecavasotero6234
    @andrecavasotero6234 Před 5 lety

    In my opinion the best part of the video was the explanation of the IN operator. Thanks for sharing.

    • @CurbalEN
      @CurbalEN  Před 5 lety

      Thanks Andre! It was a great example to explain it :)
      /Ruth

  • @erichsanches823
    @erichsanches823 Před 3 lety

    Ruth, thanks a lot! You saved my day!

  • @vedantdashora2528
    @vedantdashora2528 Před 2 lety

    That’s amazing! You saved my 2 months of PBI efforts to get rejected just because of I couldn’t figure out how to do this requirement applied over.

  • @andredeoliveira3684
    @andredeoliveira3684 Před rokem

    Thanks Ruth, you're the best! greetings from Brazil

  • @JesusCastro-fo6sn
    @JesusCastro-fo6sn Před 5 lety

    Excelente, Ruth. Muy agradecido por tu aporte. Saludos.

    • @CurbalEN
      @CurbalEN  Před 5 lety

      Saludos y buen finde!
      /Ruth

  • @michelerampazzo
    @michelerampazzo Před 5 lety

    simple but very effective!!! Many thanks Ruth 👍!!!!!

    • @CurbalEN
      @CurbalEN  Před 5 lety

      Yey!!! The pleasure is all mine :)
      /Ruth

  • @tatuionut18
    @tatuionut18 Před 4 lety +2

    Awesome! Exactly what I was looking for!
    Thank you!

  • @lawrencew8243
    @lawrencew8243 Před 11 měsíci

    Wow this solved my problem so quickly, spinning my wheels on different forums until I found this. Thank you!!!

  • @bradj229
    @bradj229 Před 2 lety

    Outstanding! Thanks Ruth!

  • @user-cx9ji6ce6v
    @user-cx9ji6ce6v Před rokem

    Awesome. Thanks a lot, this is exectly the solution I wanted googling how to get list of selected values from a slicer)

  • @lxh3943
    @lxh3943 Před 2 lety

    Thank you so much for all of your videos. You have helped me so many times. I appreciate you very much.

    • @CurbalEN
      @CurbalEN  Před 2 lety

      And Thanks for supporting me and my work, appreciate it too :)

  • @myazigi
    @myazigi Před 5 lety

    Excelente tip Ruth, muchas gracias!!!

    • @CurbalEN
      @CurbalEN  Před 5 lety

      Un placer y buen finde!
      /Ruth

  • @ankushjain4128
    @ankushjain4128 Před 2 lety

    Your session is full of informative .....please keep it up your work

  • @BrunoAraujo-po2lm
    @BrunoAraujo-po2lm Před 2 lety

    YOU'VE JUST SAVED MY WORKDDAY MAM, THANK YOU SO MUCH! Take my like and my subscription!

  • @hernanleandropanzini5089

    Just what I needed, THANK YOU

  • @jenniferchin3718
    @jenniferchin3718 Před 3 lety

    was struggling with a calc and this helped bridge the gap :) wonderful!

  • @theresakurtz2888
    @theresakurtz2888 Před 2 lety

    Thank you Ruth. I never knew about "IN". I used it to count the number of slicer items selected.

    • @CurbalEN
      @CurbalEN  Před 2 lety

      Yes, that is a great use case for IN, well done!

  • @TKLouie-ii2xh
    @TKLouie-ii2xh Před 4 lety

    Very good and very helpful, love it.

  • @meghasyam427
    @meghasyam427 Před 9 měsíci

    I have completed advanced dax course in udemy but they didn't give any basic explanation on allselected and selected value. But your 10 min video helped me understand basic intuition. Thanks a lot for your help.

  • @aravinthkumar5001
    @aravinthkumar5001 Před 4 lety

    This is very helpful. Thank you!

  • @bisjosc
    @bisjosc Před 4 lety

    thanks Ruth ..it is well explained and helps on my work .

  • @rodrigofazzolari3466
    @rodrigofazzolari3466 Před 3 lety

    Very ellegant solution. I was really stuck on that issue.

  • @mdupler1
    @mdupler1 Před 3 lety

    Thank you soooo MUCH! I spent hours trying to figure this out!

  • @rohitpuranikratlami
    @rohitpuranikratlami Před rokem

    Thanks a lot for such a wonderful video🙏🏻🙏🏻

  • @RajeevKumar-fm5xx
    @RajeevKumar-fm5xx Před 2 lety

    Awesome, great knowledge, exactly looking for that 👍

  • @roopalityagi3958
    @roopalityagi3958 Před 3 lety

    Thank you for making our lives easy :)

  • @reggaegonza
    @reggaegonza Před 10 měsíci

    Love You!!!! from Argentina!

  • @awadelrahman
    @awadelrahman Před rokem

    4 years old video, solved my problem today!!! THANKS

    • @CurbalEN
      @CurbalEN  Před rokem

      Fantastic and well done!! 👏👏

  • @nielsrozeboom8852
    @nielsrozeboom8852 Před 3 lety

    This was of a great help for me. Thank you a lot!

  • @sergegagne874
    @sergegagne874 Před měsícem

    You saved my bacon once again, thank you!

  • @MaanEid
    @MaanEid Před 3 lety

    Thanks a lot! this is very clear and helpful

  • @vida1719
    @vida1719 Před 5 lety

    Magical In. Thanks for sharing

  • @greatminds9315
    @greatminds9315 Před rokem

    Big Thanks for the video and explanation, you are awesome. it saved my life. Subscribed :)

  • @excelrati
    @excelrati Před 3 lety

    Thanks a million! This has been greatly helpful!

  • @ecofriendlyify
    @ecofriendlyify Před 3 lety

    Such a great trick. Thanks a lot!

  • @poojachoudhury2227
    @poojachoudhury2227 Před 2 lety

    just waooo.. This is what I was looking for exactly!!

  • @paayumthotagaming8372
    @paayumthotagaming8372 Před 2 lety

    Thank you So much, you solved my 72 hours head scratching issue.

  • @selenevera8834
    @selenevera8834 Před 3 lety

    You save my life ! I love you ; )

  • @giri41
    @giri41 Před 4 lety

    You are an Angel

  • @pedrocapra4388
    @pedrocapra4388 Před 2 lety

    I was cracking my head, all I had to do was changing = to "IN". You rock!

  • @HachiAdachi
    @HachiAdachi Před 5 lety

    Apparently you had already introduced us "IN" and "CONTAINSROWS" functions 79 DAX Fridays ago (#39), but I didn't remember even the existence of these functions until now. I guess it's time for a refresher... I'm afraid to find out what other useful functions I had forgotten but could have been perfect solutions for all these times that I was spending hours/days to come up with workarounds... but as they say, it's better late than never to learn (and re-learn... again...)! Thank you, Ruth!

    • @CurbalEN
      @CurbalEN  Před 5 lety +2

      Believe me DAX Fridays is a function refresher for me too and I check my old videos all the time!!
      Weird to learn from a past self 😂😂😂
      /Ruth

    • @HachiAdachi
      @HachiAdachi Před 5 lety

      @@CurbalEN whoa, don't mess with the Space-Time Continuum, Ruth! That's some dangerous stuff! lol

    • @CurbalEN
      @CurbalEN  Před 5 lety +1

      😂😂😂 I knoooowww!
      /Ruth

  • @mauriciopriego1700
    @mauriciopriego1700 Před 3 lety

    Thank you for the trick.

  • @ceobiclub9411
    @ceobiclub9411 Před 2 lety

    Thank you! Awasome!

  • @alankarsrivastava5328
    @alankarsrivastava5328 Před 4 lety

    Thanks for wonderful information

  • @lucascolotta3315
    @lucascolotta3315 Před 2 lety

    Thanks, Thanks!!!!! You are the best! :D

  • @jerrykappa6899
    @jerrykappa6899 Před 5 lety

    Nice one... never used IN before but I sure will. 😁

    • @CurbalEN
      @CurbalEN  Před 5 lety

      Neat little function 😊!
      Happy Friday :)
      /Ruth

  • @diegoortega1138
    @diegoortega1138 Před 4 lety

    This very good! Thanks.

  • @lucyesoque2614
    @lucyesoque2614 Před 5 lety +1

    THANKS! YOU ARE MY IDOL =D

  • @geobuenopaula
    @geobuenopaula Před 3 lety

    Thank you!!!

  • @navneetsingh1435
    @navneetsingh1435 Před 3 lety +2

    I was struggling on something simple for days and looks like a possible solution here.

  • @LuisRomaUSA
    @LuisRomaUSA Před 3 lety

    Every single time management asks for some update that seems will take me hours of work, I come to your channel and find a soluiton that makes it minutes.

  • @ginesc
    @ginesc Před 2 lety

    Muchas gracias por la solución (varias selecciones en un slicer). ;-)

  • @TheKantoni
    @TheKantoni Před 3 lety

    Thanks for help

  • @nedacil
    @nedacil Před 4 lety

    simple and amazing

  • @ChrisSmithFW
    @ChrisSmithFW Před 2 lety

    This is great. Thanks so much. Just one question: what do we do with the Category card that returns blank when multiple values are selected?

  • @JitendraSingh-pg9sc
    @JitendraSingh-pg9sc Před 2 lety

    Love your video Ruth, I am looking for some help. I am using date range slicer and on every selection I want to filter my page (filter chart and table data) for the selected date range and it should also include data for blank date values as well every time.

  • @pabsmart
    @pabsmart Před 2 lety

    thanks a lot! I owe you one ;-)

  • @kavyakovuru9
    @kavyakovuru9 Před 2 lety +1

    Hello mam, this video has the relative information of what I'm searching today, Just one question, can we display more than 2 values using the same DAX function?
    Thanks in advance!!

  • @jaeesteban2850
    @jaeesteban2850 Před 3 lety

    you videos are great! have a question though? What if I have 3 slicers? Can I still use this?

  • @djeritorres
    @djeritorres Před 5 lety

    Hola Ruth. 7:10 el rostro cuando DAX no obedece... Me ha sacado una risa. Saludos

    • @CurbalEN
      @CurbalEN  Před 5 lety +1

      😂😂😂 Quizás debería editar más los vídeos para no daros esos sustos !! 😂😂
      /Ruth

  • @olivierriss
    @olivierriss Před 4 lety

    Thank you for your so useful videos ! I used your tip in this video on Power BI, it works perfectly ! But... when I write the same dax measure in Excel / Power pivot, I get a syntax error message about the "in" :-( Have you an idea why I can't use it in Power Pivot ?

  • @brunelresidences1113
    @brunelresidences1113 Před 5 lety +1

    Great video Ruth - wondering, how can the card show the multiple values selected i.e. A, B, C rather than Blank?

    • @CurbalEN
      @CurbalEN  Před 5 lety

      A card can only show one value. To show more you can use a table instead :)
      /Ruth

  • @srikiranakula5170
    @srikiranakula5170 Před 4 lety

    Hi Ruth, I likes your videos on DAX...
    Could you pls make a video on Selectedmeasure(), IsSelectedmeasure()

  • @dhruvsingh9
    @dhruvsingh9 Před 3 lety

    Thank you so much for this .... Can you show us the same with date slicer... Where I have a period in the slicer like fromdate and to date kind of situation

  • @raneemalabwi2627
    @raneemalabwi2627 Před 10 měsíci

    Thank you for the great explanation. I have a question, Why didn't we put values instead of selectedvalue ?hank you

  • @vivekvarma1038
    @vivekvarma1038 Před 4 lety

    Nice! I kinda have a similar scenario, could you help me out here? I have a Table1 with two columns: Employee Name and their Joining Date and Table2 with just dates for a user to select from a dropdown. Can I use the selected date from the user and compare it with the Joining dates in Table1 to create a flag (to check if the employee joined in the selected month or before the selected month) ?

  • @just4fun410
    @just4fun410 Před 5 lety

    Hi Curbal,
    If we don't select any value from slicer can we get aggregated value like (1500) without displaying category in the same table. If it's possible kindly let me know. Thanks :)

  • @summerbrooks7262
    @summerbrooks7262 Před 3 lety +1

    What if I wanted to select A, and always have B show as the constant comparison value as well as A or whatever else is selected? How could I do that?

  • @franklynjandozo2610
    @franklynjandozo2610 Před 5 lety

    Muito bom!

  • @erikcrins
    @erikcrins Před 2 lety

    Hi This is the first time I see one of your video's. Thank you for taking the time and effort! Great solution!
    But...
    What do I need to change if I want this to work with a slicer that has tekst in it? Id like to show the selected strings in a card.
    (I have slicers on the first page of a report(synchronised for all other pages) and I'd like to show the selections on the pages with visuals)

  • @kardaf
    @kardaf Před 5 lety

    Cool !

    • @CurbalEN
      @CurbalEN  Před 5 lety

      Yey! Happy Friday :)
      /Ruth

  • @cliveluis
    @cliveluis Před 3 lety

    Great video ,Hi I have a question in reverse , what if I multi select 3 months and do not want YTD for certain columns/Values (ie addition of 3 months)? For Example , I’m ok with YTD for revenue by Multiselecting but for some other values , I want position at end of month
    Example if I select jul aug sep , I want YTD for revenue which is fine and normal , but for some other columns I want values at end of August only ( not total of July aug sep) ?

  • @bellalee9703
    @bellalee9703 Před 3 lety

    Hi. this video is so helpful.
    I'm working on designing a dashboard in power bi. I want a user click on the slicer by name of project title.
    For example, the user click project A in the slicer. As a result, the graph will show that project A's progress for all months (Jan-Dec). Otherwise, if the user is not clicking the slicer, the graph remains blank. how I'm supposed to do?
    Thank you.

  • @jainr67
    @jainr67 Před 4 lety

    Hi Ruth,
    Thanks for making such beautiful and informative videos. I was recently working on a requirement and I need selected values in a date slicer (From date - To Date)
    Can you please tell me how can I do that?
    Rishabh

    • @Tony-mo9ev
      @Tony-mo9ev Před 4 lety

      ToDate= CALCULATE(
      MAX(DimDate[FullDateAlternateKey]),
      ALLSELECTED(DimDate)
      )
      Use MIN for the FromDate :)

  • @bahman7210
    @bahman7210 Před 4 lety

    Thank you Ruth . i have question , i need to show report base on employee name or employee id
    so for that reason i create new table to show name/employeeid in drop down ( SelectTbl)
    and based on selected value i wrote new formula to create column
    newcolumn= if( SelectTbl[AnonymousSelected] = "name" , Employee[name] , Employee[ID] )
    but it doesn't work . (seems formula doesnt work for column and it just work for measure )
    so instead of adding new table , if new fake column added to Employee table and change formula to
    newcolumn= if( Employee[AnonymousSelected] = "name" , Employee[name] , Employee[ID] )
    then it works! :(
    do you have any idea why powerbi is so lazy !?!(disappointed ! you can do whatever you want in tableau but ....)

  • @YYLfrank
    @YYLfrank Před 5 lety

    good for beginners.
    and for suggestion :
    maybe you can put Cate to the Result Visual at the first place,
    so audience can see the cate change in quick.
    (thats the way demo i learned from sqlbi.com, even they dont have too much video on there free blog)

    • @CurbalEN
      @CurbalEN  Před 5 lety

      Hi,
      What is Cate? Not sure what you mean?
      /Ruth

    • @YYLfrank
      @YYLfrank Před 5 lety

      @@CurbalEN sorry I mean category columns

  • @denisedff
    @denisedff Před 5 lety

    Hi Ruth great because it is guiding me to the right direction. But I was wondering. What if I do not need to calculate, if I wanted filter the information from a table where selectedvalue >= column A and selectedvalue

    • @CurbalEN
      @CurbalEN  Před 5 lety

      The error is telling you that your Measure returns a table when only a value is allowed.
      Different solutions depending on what you are trying to do. Can you post in the power bi community, giving all the details?
      /Ruth

  • @Himanshu_Yaduvanshi04
    @Himanshu_Yaduvanshi04 Před 2 lety

    What if we can take out the unique categories from the orders table to make the slicer and filter the table with that slicer?

  • @shahpashupati
    @shahpashupati Před rokem

    Nice Video but what to do if I want the sum of total amount for category B even if category A and B are selected. Thanks in advance for your response.

  • @subhadeepsarkar6402
    @subhadeepsarkar6402 Před 3 lety

    Hi I have a question , currently i am making a card where user will select a particular year and month and the value of a particular measure for that year and month will be shown in card please tell me how to put multiple condition inside selectedvalue from multiple column from filter?

  • @eddyjawed4871
    @eddyjawed4871 Před rokem

    This is great but I was looking for a simpler way to filter data without a sum calculation. Is such a thing possible?
    For example I want to filter a list of months from current period to start of the year (YTD) using a slicer?

  • @hemanadezhdank401
    @hemanadezhdank401 Před 2 lety

    Is it possible to assign the selected value dynamically to pull in different column values. Say, YTD, MTD, QTD as the selected value in the slicer and they are the separate columns in time dimension. Then how is it possible to pick the YTD, MTD, QTD flags from time dimension table. Please suggest.

  • @zhaoyong6715
    @zhaoyong6715 Před 5 lety

    nice video :) would you consider this as disconnected slicer ?

    • @CurbalEN
      @CurbalEN  Před 5 lety

      Hi Zhao, yes, it is a disconnected slicer :)
      /Ruth

    • @zhaoyong6715
      @zhaoyong6715 Před 5 lety

      I'm going to give it a try :) Hope this can fix a disconnected slicer issue, I'm having :)

    • @CurbalEN
      @CurbalEN  Před 5 lety +1

      Fingers crossed 🤞:)
      /Ruth

  • @shayandossani91
    @shayandossani91 Před 4 lety

    I have one issue. I have 2 dates col in one table. I want to calculate MTD from date 1 and I want to use filter for date 2 column to get MTD for Date 1 values when filtered any specific month. How it could be possible?

  • @arghyadutta9091
    @arghyadutta9091 Před 4 měsíci

    Great

  • @metricosavante6551
    @metricosavante6551 Před 4 lety +1

    Excelente aporte muchisimas gracias.
    Me encuentro con un escenario similar pero no me da el resultado esperado, mas bien, no obtengo ningun resultado, solo error.
    Mi ejercicio es con un slicer de fechas (donde elijo un inicio y un fin) lo que necesito es, tanto de la fecha inicio como fin, identificar el año y el mes para posteriormente saber cual es la meta TOTAL de ese Mes&Año y no solo de los días que apliqué en el filtro

    • @CurbalEN
      @CurbalEN  Před 4 lety

      Hola! La comunidad de power bi es el sitio perfecto para este tipo de preguntas, pruébalo!
      /Ruth