Why is your ALL FUNCTION not working? ALL FUNCTION, ALLSELECTED, ALLEXCEPT in Power BI!

Поділитися
Вставка
  • Опубліковано 15 жов 2024

КОМЕНТАРІ • 86

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

    Do you have different problems with ALL functions? How do you resolve them?

  • @jayxpea
    @jayxpea Рік тому +9

    The last 5 mins was gold. I spent so many hours trying to figure out why my formula was not working. Thanks so much for this!

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

      Same here. I'd watched other tutorials and mine just didn't behave as expected. Thought I was going mad. Thanks Bas.

  • @smitty7592
    @smitty7592 4 місяці тому +2

    Man, I've spent nearly 2 days on trying to figure out why ALL specifically was not working. To me, this is kind of a bug in DAX, unless there is a specific reason why when a column is sorted by another column, it must then be explicitly stated in ALL(or ALLEXCEPT and REMOVEFILTERS). Thank you for this. It also helped me better understand the difference between ALL and ALLSELECTED. Great video.

  • @George-rm7yw
    @George-rm7yw Рік тому +4

    I just spent 6 hours trying to work out why ALL didnt work with my date (year / month) combination and this video was the only place I could find where it was described. Thanks a million Bas!

  • @Giraffication
    @Giraffication 3 роки тому +3

    I was about to cry myself to sleep tonight cause I just spent 4 hours trying to get my ALL function to work, but really couldn't pinpoint the issue. Turned out to be the 'Sort Order' issue!! Thank you!!!!

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

      ALL function may sometimes give a headache... or two! ;) So I am glad it helped! Thank you so much for supporting the channel :)

  • @QuyNguyen-se1ph
    @QuyNguyen-se1ph 2 місяці тому

    oh no I understood why it was wrong now!!!!! Super helpful, many thanks!!!!!!! I struggled for a week!!!!! Now I finally solved my problem!!!!!!!!!!!!

  • @sailing_life_
    @sailing_life_ 16 днів тому

    Super helpful! I couldnt get my table to work properly with a Sort Order column, but just had to include the Sort Order column in my ALLSELECTED function. Thanks!

  • @CJ-jc8tn
    @CJ-jc8tn 4 роки тому +7

    Is that ALL there is to this video? 😊 What can I say, but I learned more about all the ALL scenarios in less than 13 minutes than I have anywhere else on UA-cam. Very well explained, great examples - and appreciate breaking out your video by time segments in the comments. Thank you

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

      haha :D I gave it my ALL ;) , thx C J!

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

    Thank you for the thorough explanation! Especially example 2 with the ALL combined with date columns. I had a very similar issue when trying to calculate a running total without a Date Table and your video helped me a ton!

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

    Thank you, I was trying to figure out this exact same issue for 2 days. Without your video, it wouldn't have been possible. Thanks once again

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

    oh wow.I just spent the last couple of hours trying to figure out why my calculation wasn't working with a sort order.
    Thanks, this was helpful

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

    No One on UA-cam explained this simple and precise manner.
    You are a Gem👌

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

      that's so nice to hear - thx Prateek! 😊

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

      Actually, Alberto Ferrari also has a video about such things. Especially about the problem when a column in sorted by another. And it's also super clear. Check out his videos. They're worth it.

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

    All was making me crazy as I was not including the column in the visual as well as the one which was sorting. Thanks so much!

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

    Your videos are awesome. You explain things so well.
    One of the best videos I have seen in this subject

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

    When the trainer got to the part about including the Sort order column in the All Function I just shouted "you can't be F@#&ing serious". This has been causing me headaches for some time now. Thanks for the video, I've resolved my issue!!

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

    Bro, you just saved my evening

  • @larissacury7714
    @larissacury7714 3 дні тому

    Loved it!! Thank you!!

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

    Great info BAS, ur video solved my problem..
    Love from India...

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

      Glad to hear that! Thx for watching!

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

    Thank you for the wonderful video , can you make a video on the relationships of tables and what are the best practices we need to follow if we have multiple table use for one report. How to avoid the Bi directional relationship .

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

    Hi bas, very nice, all problems can be solved if you use all to the fact table, then it removes all the filters that are pointing to the fact table.

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

    I love all your videos!
    Great thanks! ;)

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

    This is very helpful my dear teacher

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

    Thanks Bas, You are a gem. I was having the same issue which you explained in example 1. Glad I found this video

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

    Thank you man. Really appreciate.

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

    Thank you so so much for this video. It really helped a lot.

  • @杨志强-y9g
    @杨志强-y9g 7 місяців тому

    what a wonderful video! I LOVE U.

  • @meomeoww.w
    @meomeoww.w Рік тому

    so helpful, thanks a lot!

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

    Good explanation that I can Understand and apply, I want moving forward for more explanations on power dashboard also

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

      awesome great to hear, thx Kosanam!

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

    You have saved our lives, we are eternally gratefull!

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

      and me thinking it was just a regular day in the office - happy to hear I saved some lives while having a coffee 😂😃😊

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

    Excellent breakdown of functions. Hopefully you can do one on variables. I run into issues when trying to use variables inside iterations to fix total values.

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

      thx Tigere. With variables a common issue is that variables are calculated within the context in which they are in the formula , that result is stored and used in the rest of the expression - will try to do a video on it

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

      I’m having this issue right now
      We’re you able to figure it out or find a solution online?
      If so can you point me in that direction?

    • @Henrik.Vestergaard
      @Henrik.Vestergaard 2 роки тому

      Great video. I also have issues with ALL/variables - look forward to your video on that 🙂

  • @HaiderAli-vt8wn
    @HaiderAli-vt8wn 3 роки тому +1

    Please make a video on field conditional formmating, treatas, and filter context functions...thanks

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

      already have a few videos on those topics ( for example for CF see ua-cam.com/video/x64KFTbk4Yc/v-deo.html and ua-cam.com/video/Pj9t0BuK3F4/v-deo.html )

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

    HI, I have another issue with All. I have 5 categories in a slicer but when I select each category separately, the All figures are the same for 2 of the categories while the other 3 are the same. If I select All categories, it matches that of the 3 but not the 2. Any ideas?

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

    I'm struggling with a requirement in a variable to remove a date filter while at the same time using the date in a calculation which I think brings back the date filter.
    VAR _InitialScore =
    CALCULATETABLE (
    SUMMARIZE (
    'Outcome Surveys',
    [Enrollment ID ],
    "FirstInitialScore", CALCULATE ( MINX (TOPN ( 1, 'Outcome Surveys', [Survey Date], ASC ), 'Outcome Surveys'[Gen Well Being Score]), 'Outcome Surveys'[Survey Type] = "Initial", REMOVEFILTERS('Calendar'))
    ),
    FILTER('Outcome Surveys', [Enrollment ID ] IN _MatchedPairs),
    REMOVEFILTERS ('Calendar')
    )
    The REMOVEFILTERS seems to have no effect. Any suggestions.
    Thanks.

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

    Could you explain also the ALLCROSSFILTERED function as well?

  • @sandeepreddy7687
    @sandeepreddy7687 4 роки тому

    Love your videos as well. Waiting for next challenge from you

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

      thanks Sandeep! new challenge coming soon :D

  • @就已
    @就已 3 роки тому

    OMG!!! sort by column also need to put into All()
    THX!

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

      haha I found out the hard way!! 😂

  • @sofiarinaldi-hg7oj
    @sofiarinaldi-hg7oj Рік тому

    Hi!! very usefull video. I still have a problem that i do not know how to solve. I want to rank my stores acording to diferent masures and in order to do so i used rankx with an allselected filter and it works. the tricky part is that i would like to select a store from an outside slicer and see how it ranks, but since i have my rankx mixed with an allselected filter onces i select the store it ranks it agains itself and it turns out to be 1. do you know how could i solve this?? Hope you can help, thanks!!

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

    very nice, Bas!

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

    Hi, this video really helped!
    Just one question, what if I need to use a slicer to subset the column on which we are using the all function. At present, I have a situation where I need to get subtotals by two groups, apply all function to a third column but also be able to subset the third column using a slicer. Right now, my third column is a date field and using all function to this column gives the sum of all dates. But even if i use an external slicer to select two dates only, it still gives me the entire sum of all dates. What I want it to be able to do is give the all only on the subset of the dates selected.

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

      sounds like you don't want to remove the filter that comes from the slicer. In that case you would need ALLSELECTED()

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

      @@HowtoPowerBI yes this was it! Thank you so much! Plus the thing about also including the order by column made it work! Can't thank you enough for this. 😊🙏

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

    Hi! Thanks for the video :) I have a question: If I create a filter visualization of the ProductCategory and I use it to filter by just one ProductCategory the Table shows me just the ProducCategory that I've had selected with its SalesAmount but the 'ALL Sales' measure changes...and it is supossed to be the same value as the value given without using the filter. What is going wrong?

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

      did you also remove the filter from the column that sorts the product category ( ProductCategorySort ) ?

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

    Kudo to you .... You my life saver today

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

      awesome! happy it helped! 😃👊

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

    Amazing 👏

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

    I got confused in the Sales % and ALLSELECTED Sales %,
    Sales % should show 100 % as it removes any filter applied so it should not care about what filters are applied no change should affect, whereas ALLSELECTED Sales % should show the percentage for only selected items, so there should be less in % not 100,
    Can you please help me in clearing the doubts?

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

    Super Duper Brother.......

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

    Using multiple columns as references in all or allselect can't be performed as the column names are not populated as parameters in the function. I there any solution we have to follow

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

    Thanks!

  • @totvabe1
    @totvabe1 4 роки тому

    I was wondering if inside the CALCULATE function,
    ALL(dimProducts[ProductSubcategoryName], dimProducts[ColorName]])
    and
    ALL(dimProducts[ProductSubcategoryName]), ALL(dimProducts[ColorName]])
    are equivalents. I think so.
    Thanks for the video!

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

      result is the same :) the CALCULATE function will perform a logical AND operation on all the filter conditions it has.. So both expressions remove the filters on subcategory and colorname.

  • @HaiderAli-vt8wn
    @HaiderAli-vt8wn 3 роки тому

    Best Best and Best....thanks

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

    THE BEST

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

    Hi, I faced an issue when the ALL function is not working. I created a measure to ignore country filter : Total = CALCULATE(AVERAGE(ASP[Net Value ASP USD]),ALL(ASP[Country],ASP[District]))
    The table with country and total columns looks okay but once I select country slicers, the total starts to change.

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

      hi, I also faced the same problem, do you already found the solution?

  • @ashishmohan4707
    @ashishmohan4707 4 роки тому

    Amazing u r Rockstar the💐💐💐💐👍👍👍👍👍

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

    IDK why you dont have more subscribers

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

    why there is SORT BY but in real time we never use SORT BY so then ALL will work right ?

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

    👌

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

    numbers without thousand separator look sloppy.

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

      agree :) not sure how that relates to the topic of the video though

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

    Thanks!

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

      Thank you for supporting the channel :)