Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Can one TMDL script update measures in more than one table. I get a syntax error when I add a second
Solved! Go to Solution.
The above worked once I updated Power BI Desktop to the latest build. Here is the full script:
createOrReplace
ref table Sales
measure 'Sales Amount by Due Date' = CALCULATE(SUM(Sales[Sales Amount]), USERELATIONSHIP(Sales[DueDateKey],'Date'[DateKey])) * 3
formatString: \$#,0.###############;(\$#,0.###############);\$#,0.###############
ref table 'Sales Order'
measure test2 = CALCULATE(Sales[Sales Amount by Due Date],Sales[Sales Amount]>0) *2
annotation PBI_FormatHint = {"isGeneralNumber":true}
An example would be appreciated as clearly I am not getting this to work otherwise I would not have posted the question. I am looking for an example of updating 2 or more measures in different tables in one script. I've tried different variations of the following and I get a syntax error and apply error.
The above worked once I updated Power BI Desktop to the latest build. Here is the full script:
createOrReplace
ref table Sales
measure 'Sales Amount by Due Date' = CALCULATE(SUM(Sales[Sales Amount]), USERELATIONSHIP(Sales[DueDateKey],'Date'[DateKey])) * 3
formatString: \$#,0.###############;(\$#,0.###############);\$#,0.###############
ref table 'Sales Order'
measure test2 = CALCULATE(Sales[Sales Amount by Due Date],Sales[Sales Amount]>0) *2
annotation PBI_FormatHint = {"isGeneralNumber":true}
Hi @ChillETL ,
We really appreciate your efforts and for letting us know the update on the issue.
Please mark your reply as the solution so as to help other community members who may face similar issue in the future.
Please continue using fabric community forum for your further assistance.
just worked for me, changed measure values from 1 and 2
Yes
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 58 | |
| 45 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 120 | |
| 117 | |
| 37 | |
| 35 | |
| 30 |