DAX ALLSELECTED Function

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

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

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

    The best explanation of the topic, on all of TH-cam.

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

    Hi Goodly,
    I'm only roughly a month into Power BI and DAX and you've already been a tremendous help with your videos. Thank you!
    I'm not a big fan of this particular video however, as I think the concept of ALLSELECTED() is not that difficult to understand, but you're making it quite complicated with your definition and the way you go at explaining it with the matrix.
    The definition I go by is:
    ALLSELECTED() provides the grand total for the externally (Slicer-) selected values of the (one or more) dimension column(s) specified in the ALLSELECTED() function, ignoring any filters for that/those dimension column(s) coming from the displaying visual.
    Or even better:
    ALLSELECTED() is simply the dynamic version of a hard coded dimension filter within CALCULATE():

    i.e. = CALCULATE([Total Sales],ALLSELECTED('Article'[Color]))
    - with an external filter on [Color] selecting "red" and "blue" equals the non dynamic code:
    =CALCULATE([Total Sales], 'Article'[Color] in {"red",blue"})

    ALLSELECTED() with more than one column or the entire table then wraps the specified columns or all the columns in the specified table in an AND() function.

    i.e. =CALCULATE([Total Sales], ALLSELECTED('Acticle'[Color]), 'Article'[Category]))
    - with an external filter on [Color] selecting "red" and "blue" and an external filter on [Category] selecting "Bikes" and "Safety Equipment" equals the non dynamic code:
    =CALCULATE([Total Sales], AND('Article'[Color] in {"red", ”blue"), 'Article'[Category] in {"Bikes", "Safety Equipment"}))
    Best TheRealNucleus

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

      superb explaination
      👏 👏

      👏 👏
      👏 👏
      👏 👏
      👏

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

    One of the best 17 minutes I have spent on DAX ever.. Thanks for explaining in such details

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

    These videos are the bestes that i have found so far in youtube or anywhere ...thanks a lot for educating us in such a great way :)

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

    Dude, you are not a hero but THE hero!

  • @CJ-jc8tn
    @CJ-jc8tn 3 ปีที่แล้ว +1

    Superb explanation of this tricky DAX function. Love the different examples that clearly explain it step by step.

  • @sonalijain9024
    @sonalijain9024 2 หลายเดือนก่อน

    mind blowing explanation.

  • @gFowmy
    @gFowmy 4 ปีที่แล้ว

    You did a great job to explain one of the most complicated functions in DAX.

    • @GoodlyChandeep
      @GoodlyChandeep  4 ปีที่แล้ว +1

      Thanks Man.. I am glad you found it helpful

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

    Best Explanation Mann on TH-cam !!!

  • @usmantariq3634
    @usmantariq3634 4 ปีที่แล้ว

    Thnx for ur efforts. I have an intriguing question with regards to "filter restoration". Marco/Alberto mention in one of their videos on ALLSELECTED that it restores filters from outside of visual hence, in our case here, year should not be filtering the data at all since its inside the visual(Matrix). Pls shed some light on this. Again gr8 work and keep helping us understand DAX :)

    • @GoodlyChandeep
      @GoodlyChandeep  4 ปีที่แล้ว +1

      The specific example that Marco or Alberto discussed could have the scenario. I really need to see that video to clarify
      ALLSELECTED simply restores the values of the columns that you mention inside the function. Of course, the best way is to try it out yourself :)

    • @usmantariq3634
      @usmantariq3634 4 ปีที่แล้ว

      @@GoodlyChandeep Thx for replying. My concern is when u say ALLSELECTED with NO parameter when used in CALCULATE restores all filters. However, as per Following description frm Alberto, it seems only filters from outside of current visual are restored which in your case is only category & color coming from slicers hence, why are date columns also restored. Following is a 4 min video from Alberto th-cam.com/video/UehWR5wWWEo/w-d-xo.html

  • @Shinupp
    @Shinupp 4 ปีที่แล้ว

    Amazing...you explained it very well

  • @sandeepjami9119
    @sandeepjami9119 4 ปีที่แล้ว +1

    Well explained mate.

  • @noname-cu2xh
    @noname-cu2xh 3 ปีที่แล้ว

    Keep up the good work. thanks

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

    Video is God Sent 🙌🏻

  • @prabhatdass6184
    @prabhatdass6184 4 ปีที่แล้ว

    Hi I want be expert on power bi ,just have etl understanding as of now. Which playlist I should start with of yours?

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

    Great explanation

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

    Perfect! Thank you.

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

    Great video, I do think a lot of DAX functions are badly named, so; ALL ; returns a table of unique values and sees no filters, VALUES sees them all , but ALL-selected restores them, likewise Keepfilters is really enforcing an AND between internal and external. I think?????

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

    HI CHANDEEP
    What it meens -Last visiable shadow context filter?
    I understund it so.
    Last visable-A Column in the matrix as Catigory it's current context filter and the sliser it's a last context filter.
    Shadow context filter created by the sliser restoring current context filter.
    Or NOT?

  • @johnj108
    @johnj108 4 ปีที่แล้ว

    Loved it. Learnt a lot in terms of the working of function. Can you please do a video on SELECTEDVALUE & HASONEVALUE functions, please?

    • @GoodlyChandeep
      @GoodlyChandeep  4 ปีที่แล้ว

      Selectedvalue is right here - th-cam.com/video/tVpevJEq2sg/w-d-xo.html

    • @johnj108
      @johnj108 4 ปีที่แล้ว

      @@GoodlyChandeep Thank you :)

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

    Hey have you explained ALL function in DAX if yes please share link as i cant find it

  • @julie_chen
    @julie_chen 3 หลายเดือนก่อน

    Hope TH-cam pays for the several subsequent viewing time after the first one. ❤

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

    My All Selected is not working on two column. I am unable to retrieve intellisence for second column. Kindly assist.

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

    So visible means on visual or on filter ???

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

    Good Stuff

  • @KiranKumar-xf2th
    @KiranKumar-xf2th 3 ปีที่แล้ว

    ALLSELECTED FUNTION TAKES THE OUTER FILTER CONTEXT RATHER THAN THE INSIDE---ALBERTO
    ALLSELECTED FUNCTION TAKES THE CLOSEST FILTER CONTEXT ---GOODLY , I am confused now, Is my understanding correct?

  • @RameshK-rc5nv
    @RameshK-rc5nv 3 ปีที่แล้ว +1

    Dear sir , I think either i am not getting or some issue. . Although what you explain is perfectly right but . .I think that the way you are interpreting shadow filter context is not correct . .Shadow filter context is specifically used when all selected is inside an iterator . .
    You are using shadow filter word loosely for both explicit and shadow filter .
    Also You have not covered the nuance of main trickey area of allselected that is all selected inside iterator or multiple iterator. .

  • @riteshchawla10
    @riteshchawla10 4 ปีที่แล้ว

    pls keep explanation simple