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
Hi,
Can anyhone see what is wrong with this calculation... deos not seem to be working..
Previous Month := CALCULATE(SUM(Query[Net]),PREVIOUSMONTH(Table2[Date]))
Error message is saying the expression is not valid and the syntax for '(' is incorrect.
Thanks
Solved! Go to Solution.
HI @Anonymous,
DAX formula is correct and no syntax error
Please, check your Query and Table2 connection in relationship. It may be possibility that you haven't marked your date table as "Mark as a date table". Time intelligence function will only work if your custom date table is marked with "Mark as a date table"
Thanks,
Amit
Hi @Anonymous,
Based on my test, it could work on my side:
Could you please share your file to have a test?
Regards,
Daniel He
Hi Dan,
Was missing the relationship .. fixed now.;
Thanks
@Anonymous
The syntax looks correct.
Need to check the connection between the tables Query and Table2
Also make sure you dont have any redundant brackets in the formula
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |