Forum Discussion

Hadill's avatar
Hadill
Helper I
4 years ago
Solved

New Condition Column - Sum

Hello Friends    I need some help here !   let's say I have 'Table1', and 'Tabel2'. the two tables have the same column [A] with the same content.   How can I write the folloing in DAX?   I w...
  • AlexisOlson's avatar
    AlexisOlson
    4 years ago

    This assumes there is a unique X value per A value.

     

    You can avoid this summing X instead.

    B = CALCULATE ( SUM ( Table2[X] ), Table2[A] = EARLIER ( Table1[A] ) )