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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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