Forum Discussion

Isoka's avatar
Isoka
Frequent Visitor
4 years ago
Solved

Filter based on a condition

Dear all,   I can't figure out how to apply a filter based on a condition. For instance, I would like to filter column "Area" from table "A" based on column "Area" from table "B". But I want to use...
  • Isoka's avatar
    Isoka
    4 years ago

    I have just found out that writing the code with the whole CALCULATE inside de IF statement it works. Like this:

    mymeasure = IF (1=1,

                               CALCULATE(

                                                    SUM(),

                                                    FILTER()

                                                   ),

                                                   result if false

                                )

     

    But if someone has a more elegant way to accomplish what I have explained in the first post I would really like to learn.

    Best regards,

     

    Isoka