Forum Discussion

Applicable88's avatar
Applicable88
Impactful Individual
5 years ago
Solved

Filtering many columns and also date

Helllo, what is best practice to filtering several strings from same, as also from different columns, while also having a date condition? Is it possible to put it in one Measure straightforward?:  ...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Applicable88 

     

    You can apply multiple conditions in a measure, it depends on how you would like to visualize your result. Based on your sample data, a card to show it

     

    Total Sales = SUMX(FILTER(yourTable, yourTable[Date]>DATE(2021,01,16)&&yourTable[Category]="Clothing"&&yourTable[Size]="M"&&yourTable[Color]in{"green","black"}),yourTable[Sales])