Forum Discussion

Kermithefrog's avatar
Kermithefrog
Regular Visitor
5 years ago

HELP - FILTER START/BEGIN WITH

Hello.

 

I have a table (ML) which has a column with various numbers (0, 1, 2, 3, 4, 5, 6, 7, 8, 9...) , those numbers are not unique, they can be like :

 

(Example)

With 0:

0001, 0002, 0003

001, 002, 003

01,02,03, etc.

 

With 1:

1000, 1001, 1002,

100, 1001, 102,

10, 11, 12

....

 

(Continues to 9)

 

But I only need the FIRST number or the FIRST two numbers. 

 

1st case (1st filter): Return all the numbers of the column that begins with 6, BUT NOT with 64 or 69.

2nd case: (2nd filter): Return all the numbers of the column that begins with 7.

 

I know I can do that with visual filters, but I only can apply that to one case, If I try to filter the 1st case and the 2nd case at the same time, they will both be filtered and I won't receive all the values that I need.

 

Help pls?

2 Replies

  • v-henryk-mstf's avatar
    v-henryk-mstf
    Icon for Community Support rankCommunity Support

    Hi Kermithefrog ,

     

    Do you mean that you don't want the filter to filter two cases at the same time? You can try to use the Edit interactions function to select the visual objects that need to be interacted with.

     

    Here is the reference document link.Power BI - Edit Interactions features - Power BI Docs


    If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.

    Best Regards,
    Henry

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • Kermithefrog's avatar
      Kermithefrog
      Regular Visitor

      Hey Henry.


      Thank your for answer.

       

      In fact, those "Edit interactions" tool are really good, but that's not what I want/need in this case.

      I need some help, in DAX, to give me 2 filters, like I said:

       

      1st case (1st filter): Return all the numbers of the column that begins with 6, BUT NOT with 64 or 69.

      2nd case: (2nd filter): Return all the numbers of the column that begins with 7.

       

      I solved this using SQL, but I need to know how to solve this in DAX too.


      Tks!