Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

help with looping on a table

Hello All,   I have a table that looks like the below Part   Cost   Site      Date A       80      EMEA   20210101 B       85      EMEA   20210101 C       75      EMEA   20210101 E       50   ...
  • Jihwan_Kim's avatar
    5 years ago

    Hi, Anonymous 

    Please check the below picture and the sample pbix file's link down below.

     

     

    Action Measure =
    SWITCH (
    TRUE (),
    CALCULATE ( SUM ( 'Table'[Cost] ), 'Table'[Month] = 2 ) > 70
    && CALCULATE ( SUM ( 'Table'[Cost] ), 'Table'[Month] = 1 ) < 70, "Added",
    CALCULATE ( SUM ( 'Table'[Cost] ), 'Table'[Month] = 2 ) < 70
    && CALCULATE ( SUM ( 'Table'[Cost] ), 'Table'[Month] = 1 ) > 70, "Removed"
    )
     
     

    Hi, My name is Jihwan Kim.


    If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


    Linkedin: linkedin.com/in/jihwankim1975/

    Twitter: twitter.com/Jihwan_JHKIM