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

THE SYNTAX FOR ) IS INCORRECT

 I have  following measure like 

 

  1. Shipment valueslist =
  2. Var Truck = divide(SUM('Consumables'[01-Truck Sum of Spend]),SUM('Consumables'[01-Truck Sum of Sum of Shipement Per Quantity]))
  3. var STO= divide(sum('Consumables'[02-STO Truck Spend]) , SUM('Consumables'[02-STO Truck Sum of Sum of Shipement Per Quantity]) )
  4. var SEA = divide(sum('Consumables'[04-Sea - Sum of Spend]), SUM('Consumables'[04-Sea - Sum of Sum of Total Qty]))
  5. var AIR=DIVIDE(sum(Consumables[05-Air - Sum of Spend]),sum(Consumables[05.Air - Sum of Sum of Total Qty]))

i  getting error  THE SYNTAX FOR ) IS INCORRECT also i want retrun all value. i want to show all value single visual .any help 

2 REPLIES 2
nandukrishnavs
Community Champion
Community Champion

@Anonymous 

 

In your measure, the return value was missing. If you are trying to show the result on the card visual you can try the below measure.

 

Shipment valueslist =
VAR _Truck =
    DIVIDE (
        SUM ( 'Consumables'[01-Truck Sum of Spend] ),
        SUM ( 'Consumables'[01-Truck Sum of Sum of Shipement Per Quantity] )
    )
VAR _STO =
    DIVIDE (
        SUM ( 'Consumables'[02-STO Truck Spend] ),
        SUM ( 'Consumables'[02-STO Truck Sum of Sum of Shipement Per Quantity] )
    )
VAR _SEA =
    DIVIDE (
        SUM ( 'Consumables'[04-Sea - Sum of Spend] ),
        SUM ( 'Consumables'[04-Sea - Sum of Sum of Total Qty] )
    )
VAR _AIR =
    DIVIDE (
        SUM ( Consumables[05-Air - Sum of Spend] ),
        SUM ( Consumables[05.Air - Sum of Sum of Total Qty] )
    )
VAR _result = "Trunk :" & _Trunk & ", STO :" & _STO & ", SEA :" & _SEA & ", AIR:" & _AIR
RETURN
    _result

 




Regards,
Nandu Krishna

Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 👍

Proud to be a Super User!

 


Regards,
Nandu Krishna

Anonymous
Not applicable

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.