Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello Wonderful People
Please can someone point out the error in my syntax because PB error message for syntax is useless (or me?). Thank you in advance.
Solved! Go to Solution.
Hi @Anonymous
After Retun need to specify variable or a calculation you want to return
check the below measure
test =
Var test =
CALCULATE(
SUM('Payment Report Template'[Payment Amount]),
FILTER('Payment Report Template','Payment Report Template'[Payment Type]="Practical Completion")
)
RETURN test
If this post helps, then please consider Accept it as the solution, Appreciate your Kudos!!
Thank you for your quick response! The syntax is now working.
Hi,
you missed to write the var after Return (test)
Hi @Anonymous
After Retun need to specify variable or a calculation you want to return
check the below measure
test =
Var test =
CALCULATE(
SUM('Payment Report Template'[Payment Amount]),
FILTER('Payment Report Template','Payment Report Template'[Payment Type]="Practical Completion")
)
RETURN test
If this post helps, then please consider Accept it as the solution, Appreciate your Kudos!!
Another question:
I am trying to create a variable which contains multiple variables but the syntax contains errors that I can't tell:
One question per ticket please. If you need to extend your request then please raise a new ticket.
You will get a quicker response and each volunteer solver will get the kudos they deserve.
Thank you !
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |