Forum Discussion

PBI5851's avatar
PBI5851
Icon for Helper V rankHelper V
2 years ago
Solved

If not working. as expected

Here is the raw data 

ClientMarketOrderedShippedTM
Client1Market15010TM1
Client2Market11010TM1
Client1Market23015TM2

 

One measure as 

MeasCounts =
    IF(sum('Table1'[Shipped]) <= 18, 1,0)
But the display i get is 

 

Shouldn't TM2 get 1 since their sum of shipped is less than 18 . 

  • Hi PBI5851 
    Your formula is correct.
    I prepared PBIX with your data and the same formula, please download and check what did you differently.

    Link to pbix 

    If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

3 Replies

  • Hi PBI5851 
    Your formula is correct.
    I prepared PBIX with your data and the same formula, please download and check what did you differently.

    Link to pbix 

    If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

  • i am so dumb. i had the formula created for a column , rather than a measure. 

    • Ritaf1983's avatar
      Ritaf1983
      Icon for Super User rankSuper User

      All of us make these mistakes sometimes 🙂

      Glad to help 🙂