DAX Fridays!

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ม.ค. 2025

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

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

    Hi Ruth,
    I think there is a bit of confusion on what exactly is going on with the formulas you present.
    I say this because I was left with the feeling that you were expecting the rows to be treated as a list of words.
    That doesn't happen.
    If you remove the "selectedvalue" the formula will work the same (in the case presented).
    The test that is done is to check if "hors" exists on the whole string, and it does.
    The CONTAINSSTRINGEXACT from my point of view is working as expected.

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

      Thanks for the feedback!
      /Ruth

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

    Hi Ruth, thanks as always.

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

      You welcome Stephen and thanks for all your support!
      /Ruth

  •  5 ปีที่แล้ว

    ¡Excelente Ruth! gracias por la explicación.

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

      De nada y buen fin de semana!
      /Ruth

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

    HELP: SQL has different LIKE operators with '%', for example: WHERE CustomerName LIKE 'a%'. Is there a similar funtion in DAX?

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

    hello Ruth, if the only difference is that one is case-sensitive and the other not, it could be simpler to have only one function with an additional paramer to select case or not case-sensitive.... it seems extrange to use 2 functions so similar.

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

      Yes, I agree with you. They could have that as an extra parameter and then create a true EXACT measure. That would be wonderful, thanks for sharing.
      /Ruth

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

    Agree! It's OK to have one function that's case sensitive and another that is not, but it would be great to have one simple function that search for exact words. Saludos y gracias por la clase!!

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

      De nada y buen fin de semana!
      /Ruth

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

    I'm a bit surprised that DAX didn't already have these functions before. M has Text.Contains, so I guess I just assumed that DAX had a similar one (obviously I had never had to use it). Anyhow, it's good that we have them in our DAX toolbox now. Thanks, Ruth!

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

      No direct function, you had to use Search and Find and sumx to get something similar!
      The fact that you didn’t know is a good thing, meaning you were using Power Query for that ;)
      /Ruth

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

    Hello Ruth, Is it possible to write a DAX function using this "CONTAINSSTRING" where the "true" and "false" values are converted to 1 en -1?

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

    Can we search by Selected Value (Input coming from Slicer) in a column that contains multiple texts. Returning True or False

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

    Hi ruth
    i want to include containsstring in if condition
    how can i do this?

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

    Hello! Can you only search for one text value or can you search for multiple values in the same DAX query?

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

      Wondering the same!

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

      It is :
      community.powerbi.com/t5/Desktop/Search-for-multiple-text-in-one-column-with-OR/td-p/469698
      /Ruth

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

    Great video! These functions look like they could be very useful when working with categorical data. I think that it is searching for if say "hors" is contained in the text. Try searching for "Hors" and it will not work.

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

      Yes!! They were indeed needed :)
      /Ruth

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

    What would be really cool and really useful is if DAX and M had the search and replace functionality that Word has. Switches to indicate that you want an exact match, whole words only, ignore punctuation, ignore white space, etc. would be extremely powerful and they could wrap it all in one function for Containsstring and one for Find. They could get rid of Search or make Search have the exact same functionality as Find.

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

      That would be really amazing!! Who knows? Maybe soon :)
      /Ruth

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

    HOW WOULD YOU DO CONTAINSSTRING FOR APPLE OR CAR ?

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

    thansk

  • @hello-u2w
    @hello-u2w 4 ปีที่แล้ว

    WOW!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

      🥳🥳🥳

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

    Hi Ruth could you please give real time example where it will be useful ..thanks for this video..

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

      I will as soon as I find one ;)