Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PBI5851
Helper V
Helper V

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 PBI5851_0-1695439908378.png

 

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

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

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.

View solution in original post

3 REPLIES 3
PBI5851
Helper V
Helper V

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

All of us make these mistakes sometimes 🙂

Glad to help 🙂

Ritaf1983
Super User
Super User

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.