DAX Fridays!

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

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

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

    You just stopped my hours and hours of madness this morning. Thank you!!! Please continue posting these types of videos. They are so helpful. I rewatch them over and over.

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

      They are like lighthouses in the stormy DAX seas!

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

    I've been taking many tutorials on power bi via youtube from many other people as well. But watching your video, it seems as we are in front of another, and learning from you directly. Above all, you explain things from the very beginner level perspective. Kudoos!

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

      Wonderful to hear!! Thanks for the feedback!! 😀

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

      @@CurbalEN Thanks for making awesome videos. I am stuck in something. Please refer to any of your tutiorial adressing this:
      In SUM, things are usually simple but not with Average.
      I used ALLEXCEPT to make a measure. Let's just say that 1 of my measures is at City Level and other is at Country Level. The country values are fine as well as Total Value (let's call this World Value = 18.15).
      Then I make a calculated table using SUMMARIZE and above measure plainly to generate a table at Country Level. The resulting measure has correct value at the COUNTRY level but not the TOTAL value. That is to say that World Value is a bit different (17.97). This is what we call the average of average problem.
      What's the optimum solution to this? I had to recreate the measure in new table referring to columns/measure of old table, that I don't think is an effective solution:
      New Table (resulting measure would yield 17.97 as Network value):
      NPS_Region = SUMMARIZECOLUMNS( nps[Region], "RegTable_NPSRegion", nps[NPSRegion] )
      Measure in New Table referring to columns/measure of old table (this yield correct value 18.15):
      Reg_NPSRegional = CALCULATE( 'nps'[NPS], ALLEXCEPT('nps', 'nps'[Region]) )
      Original Measure in Old Table (yields 18.15 as Total/Network value):
      NPSRegion = CALCULATE( 'nps'[NPS], ALLEXCEPT('nps', 'nps'[Region]) )

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

      That is perfect question for the power bi community. Give it a go!!

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

    Thank you very much for the insight into this function. The best explanation so far I have watched on TH-cam. Keep up the good work!

  • @Phoenixspin
    @Phoenixspin 5 ปีที่แล้ว

    The lady in the thumbnail looked all perplexed but that was BEFORE she watched this video. Now she understands. It even now makes sense to me. Thanks, Ruth.

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

      Music to my ears :)
      /Ruth

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

    Your explanation si so clear with such great example. I was so confused regarding allexcept and all fucntions. And this video saved my night. Really thank you.

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

    As ever Ruth 2 mins into the video and I understand something i spent an hour on Microsoft documentation trying to get my tiny brain to understand! thanks again!

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

    Ruth - tu sei grande! Magnifica! Grazie!

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

      Gracie Linda!

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

    I think I am in love with you, Curbal - honestly.

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

    Reminder to myself: watch one of her video everyday!

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

      Wise decision 😉

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

    Wonderful video! Thanks Ruth!

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

      🥳🥳

  • @aliramadan7425
    @aliramadan7425 5 ปีที่แล้ว +2

    Great Video Ruth. I was always confused when to use which. Thank you!

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

      My pleasure and happy Friday :)
      /Ruth

  • @kamranb1369
    @kamranb1369 5 ปีที่แล้ว

    Another great video, I love your channel Ruth

  • @RobertoStaltari
    @RobertoStaltari 5 ปีที่แล้ว

    Ruth is gifted. Makes complex stuff looks easy! But still they are complex :'( Thanks Ruth!

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

      Thanks!
      /Ruth

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

    Thanks for clarifying this for me.

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

    Great video, but be careful, as ALLEXCEPT is removing filter only if used in CALCULATE (because it is CALCULATE modifier). But if you use it in for example in SUMX, it will not remove filters (because ALLEXCEPT in its essence is table function).

  • @adriancondie831
    @adriancondie831 5 ปีที่แล้ว

    I had stuggled with allexcept until now... I had seen it as a calculated column in a file which made it confusing because it seemed like a sumif but i didn't know why... thanks, finally I understand!!

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

      Glad to hear!
      /Ruth

  • @bravucod
    @bravucod 5 ปีที่แล้ว

    I love your videos! Thanks for all the content!

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

      Yey!! 🎉🎉 Happy Friday :)
      /Ruth

  • @stephenbrincat7124
    @stephenbrincat7124 5 ปีที่แล้ว

    Thanks Ruth, very well explained

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

      Happy weekend Stephen!
      /Ruth

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

    Hello! Thank you so much for this video. I have a question need your help if you will please. How can I show sales of USA only for all rows, regardless of other countries, but still keep other filters from my slicers?

  • @ayobamiologun9184
    @ayobamiologun9184 5 ปีที่แล้ว

    Almost confusing, but interesting at last. Thank you Ruth.

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

      Oh no! Did I confuse you?
      :(
      /Ruth

    • @ayobamiologun9184
      @ayobamiologun9184 5 ปีที่แล้ว

      @@CurbalEN Anyway, you were able to bring me back on track. I think with practice, it will be clearer.

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

    Thank you, very well explained!

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

    I just wanted to point out: The all except country would have a hilarious effect of combining sales for Paris, Texas/USA, and Paris, France.

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

      Thanks :)

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

    Hi Curbal, thank you very much for your videos, this one is very useful, I got the following situation.
    I need to iterate 3 columns (Qty * weight * assembly category) where Assembly category has two descriptions: Batter & Packaging and I need to get rid of packaging in the iteration. Packaging is inside the column assembly category. Do you have any video or hint that can possibly help me with the solution. Thank you very much for your time and help.

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

    great video! thanks a lot

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

    Thank you very much, subscribed

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

      Welcome!!

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

    Hi, first thing I would like appreciate for the video, making me to understand ALL VS ALLEXCEPT,
    I have a doubt, now I have a column "Gender" from another table "customers", if there is a slicer with gender, when I filter with slicer data is getting updated in the table, so please clarify how to avoid filtering from another table also?
    Thanks in advance

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

    Hi,
    If i have 2 allexept in the calculate formula , does the order matters ? Example :
    Allexcept(city ),
    Allexept( country ) is different from Allexcept(country ),
    Allexept( city)

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

    we can use All Dax and remove the filter of a column, then what is the use of ALL EXCEPT. Please explain.

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

    hi I am using Direct Query mode for almost 1 billion rows , I want to apply filter on a column location here but when i create a measure i need to ignore filter. I have used ALL function like CALCULATE(SUM(Sales[Amount], ALL(Sales[Location])) but it is taking 30-40 seconds. Is there any way i can optimize this DAX?

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

    One question
    Can we use group by to calculate sales by country?

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

    How can I use it to apply to provide sales per week using week number column. I tried allexcept week number but it still sums by category

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

    Make sense.. Thanks ❤❤

  • @samberger4922
    @samberger4922 5 ปีที่แล้ว

    Hi Ruth - for ALL I'll sometimes use SUMX(ALL('Table',)'Table'[Metric]). Does using the CALCULATE method have any advantage / different use-cases or is it just two ways to get to the same answer? Thanks!

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

      Use calculate instead of sumx when possible, more efficient.
      Check this out:
      m.th-cam.com/video/wvbzMwtZSKM/w-d-xo.html
      /Ruth

    • @pravinupadhyay2046
      @pravinupadhyay2046 5 ปีที่แล้ว

      Its all about evaluation context, calculate can actually play with evaluation context, and CALCULATE is the base of DAX. any kind of time intelligence function can be derived using this,
      In your solution of sumx there may be problem in some cases where the context of calculation is vital.

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

    Hi Ruth, my undersatnding is that ALL and ALLEXCEPT *include* all, in direct contradiction to your tutorial. It ignores filters in place. I'm confused.

  • @jevgenijskaktins1066
    @jevgenijskaktins1066 5 ปีที่แล้ว

    Hi, i have a question - if you grab data and want to get total for this year e.g. should i mention all the dimension tables to ignore??? Can one removefilters except? Just got that ALLExCEPT is not what you think it is ;)

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

      It is very possible!
      Happy Friday !
      /Ruth

  • @udusegbe
    @udusegbe 5 ปีที่แล้ว

    Well explained video Ruth. Thanks. Do you see the ALL function existing side by side with the REMOVEFILTERS or it will slowly 'disappear'? As I understand, there is no ALLEXCEPT version of REMOVEFILTERS, correct? To be honest REMOVEFILTERS more intuitive to grasp than ALL from a naming concept :-)

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

      All and removefilters do different things, so they are both here to stay :)
      /Ruth

    • @udusegbe
      @udusegbe 5 ปีที่แล้ว

      @@CurbalEN Thanks Ruth. Something tells me another great Curbal video titled "ALL vs REMOVEFILTERS" is not too far away ;-)

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

      Bare Udusegbe If you watch the removefilters function you will see the difference between all and removefilters :)
      /Ruth

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

    Hi,
    I am struggling to make use of ALLEXCEPT when I need to keep filtering of a column that does not come from the same table as the expression / measure (tables have a 1-M relationship):
    CALCULATE (
    SUM(Table1[ColumnA]) ,
    ALLEXCEPT ( Table2, Table2[ColumnB] )
    )
    However, when I use this formula in a calculated column of the Table2 it works as expected.
    Is there a way to make it work as a measure?

  • @ihebchafai2780
    @ihebchafai2780 5 ปีที่แล้ว

    thx Ruth

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

      You welcome :)
      Happy Friday!
      /Ruth

  • @ramakrishnaravula4350
    @ramakrishnaravula4350 5 ปีที่แล้ว

    thank you madam

  • @mchandrasekhar05
    @mchandrasekhar05 5 ปีที่แล้ว

    I just have one doubt in this!
    If I want to see only top 5 sales cities, remaining other all will be others like 6th one. What will measure for it.

  • @ЕвгенийСоломон-я5с
    @ЕвгенийСоломон-я5с 5 ปีที่แล้ว

    Hello Ruth,
    I am impressed by your videos on youtube, they help a lot. ANd I would like to ask if you know the decision on the following problem. I have a calculated column in my report with total days of ticket progress from submitted day. I need to use conditional formatting depending on ticket type, ticket status of progress and amount of days on each status. For example, ticket type - transfer, ticket status- present letter and if it is less then 7 days the cell must be green, if more than 7 and less than 10 yellow, more than 10 - red and so on. As for now I have created an enormous DAX "IF"measure with all these conditions. And I wanted to know is it possible to use a table with conditions as dynamic parameters. And not to write formula with more than 280 conditions for coloring cells. If it is possible how to do it? So I have a table in excel with ticket type rows and ticket status columns and with deadline days. And if it is less then deadline it should be green, if 2 days before deadline -yellow, and more than deadline -red. I think this case would be very helpful for others too if you make a video. Thanks a lot! I can provide more details if you are interested.
    Best regards,
    Evgeny

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

      Hi,
      To get help , please post in the power Bi community!
      /Ruth

  • @StefanyGomez-g9y
    @StefanyGomez-g9y ปีที่แล้ว

    "All!" does not work with dates?

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

    Thank you Thank you Thank you!!!!!

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

      🥳🥳🥳
      /Ruth

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

      @@CurbalEN Hi Ruth,
      One more question on this matter. Do you know why:
      [Measure3] = calculate ( [total sales],
      Filter( All(Dates),
      Dates[Date]

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

    good, from now i stop figthing against all and allexcept :D Perhaps a better name could be removeall (filters) and removeallexcept

  • @EricaDyson
    @EricaDyson 5 ปีที่แล้ว

    Funny. Only today I had to do something similar but not the same. Had to create a measure for stock values for different categories of stocks but I needed to exclude just one of the stock categories (but only one of 15 different categories). So ALL or ALLEXCEPT wouldn't work in that situation.. but it's a coincidence that I was working on something similar..

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

      I do so many videos that at some point we have to converge!
      .Ruth

  • @sweydert
    @sweydert 5 ปีที่แล้ว

    Great video Ruth. Would it be fair to say:
    ALL states what we DON'T want to see filtered by/categorized by. I.e., "REMOVE ALL the following filters because we are not interested in them."
    ALLEXCEPT states what we DO want to see filtered by/categorized by (like a WHERE clause)? I.e., "REMOVE ALL filters EXCEPT keep the following filters because we are interested in them."
    I'm still struggling to find an intuitive way to state all this in English.

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

      Exactly that, well done!
      I think of them as:
      ALL= REMOVEALLFILTERS
      ALLEXCEPT=REMOVEALLFILTERSEXCEPT
      /Ruth

    • @sweydert
      @sweydert 5 ปีที่แล้ว

      @@CurbalEN Thank you!

  • @penchalaiahnarakatla3378
    @penchalaiahnarakatla3378 5 ปีที่แล้ว

    Thanks a lot..

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

      You welcome!
      /Ruth

  • @feng3625
    @feng3625 5 ปีที่แล้ว

    Thank

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

      You welcome :)
      /Ruth

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

    really a shame that none of these demos ever check against the filters in the filter pane

  • @Martl1974
    @Martl1974 5 ปีที่แล้ว

    Yippie! :)

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

      -kay-yey!! ;)
      /Ruth

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

    I didn't understand

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

    They did a poor job in naming "ALL".

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

      Yep, and EARLIER and 🐨 and... 😂😂
      DAX is not for the faint hearted!