Forum Discussion

Henrique_Quint's avatar
1 year ago
Solved

Calculate comparing two columns as a filter

Hi, everyone.   Basically what I need is in the title. I have a table that needs to sum the revenue by store and month of another table. But I can't use lookupvalue because I have multiple brands o...
  • Henrique_Quint's avatar
    1 year ago

    I figured it out myself!

     

    What I did was use the DAX function FILTER. It turned out something like this: CALCULATE(SUM(TABLE2[REVENUE]),FILTER(TABLE2,TABLE2[MONTH]=TABLE1[MONTH]),FILTER(TABLE2,TABLE2[STORE]=TABLE1[STORE]))