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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Filter column

Hello  -  I received a boolean error message on this calculated column formula.   Any help is appreciated!

 

I am trying to put a "Yes"  or a "No"  in a column.    If the value of the "shipped price"  =  0   then it should say "0 Value Order".  

 

If there is any value above zero...it should say "Rev Order".     

 

Zero Value = CALCULATE(IF(SUMX('Flu_Shipped Orders','Flu_Shipped Orders'[Shipped Price]=0),"$0 Value Order", "Rev Order"))

 

1 ACCEPTED SOLUTION
ibarrau
Super User
Super User

Hi, it looks like you have SUMX syntax with an error. Let's see. I'm not sure if you want a new measure or calculated column so I will send both codes:

Calculated Column:

Zero Value = IF('Flu_Shipped Orders'[Shipped Price]=0,"$0 Value Order", "Rev Order")

Measure: (consider that SUMX(<table>, <expression>) this means the filtering would be in the table and the expresion would be a column or math between them)

Zero Value = 
    IF(
        SUMX(
            FILTER('Flu_Shipped Orders','Flu_Shipped Orders'[Shipped Price]=0)
            , 'Flu_Shipped Orders'[COLUMN TO SUM]
        )
        ,"$0 Value Order"
        , "Rev Order"
    )

Be carefull with the measure that needs to be completed. I wrote "Column to sum" where you have to complete.

 

Hope this helps,

Regards,


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

Happy to help!

LaDataWeb Blog

View solution in original post

1 REPLY 1
ibarrau
Super User
Super User

Hi, it looks like you have SUMX syntax with an error. Let's see. I'm not sure if you want a new measure or calculated column so I will send both codes:

Calculated Column:

Zero Value = IF('Flu_Shipped Orders'[Shipped Price]=0,"$0 Value Order", "Rev Order")

Measure: (consider that SUMX(<table>, <expression>) this means the filtering would be in the table and the expresion would be a column or math between them)

Zero Value = 
    IF(
        SUMX(
            FILTER('Flu_Shipped Orders','Flu_Shipped Orders'[Shipped Price]=0)
            , 'Flu_Shipped Orders'[COLUMN TO SUM]
        )
        ,"$0 Value Order"
        , "Rev Order"
    )

Be carefull with the measure that needs to be completed. I wrote "Column to sum" where you have to complete.

 

Hope this helps,

Regards,


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

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors