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 Guys,
How to make a proper syntax for this query in TMDL view for remote semantic model (DirectLake over OneLake)?
createOrReplace
function GetBudgetHexColor = ( v: double, actionName: string ) =>
IF (
ISBLANK ( v ),
BLANK (),
MAXX (
FILTER (
Fmt_BudgetRules,
Fmt_BudgetRules[IsActive] = TRUE ()
&& Fmt_BudgetRules[ConditionActionName] = actionName
&& v >= Fmt_BudgetRules[ThresholdLowerPercent]
&& v < Fmt_BudgetRules[ThresholdUpperPercent]
),
Fmt_BudgetRules[HexColor]
)
)
This is not working.
Best,
Jacek
Solved! Go to Solution.
Problem solved, compatibility level of semantic model has to be changed to 1702...
best,
Jacek
When I tested udf in a remote symentic model , it is working for me.
need more information if any error code etc
Proud to be a Super User!
Problem solved, compatibility level of semantic model has to be changed to 1702...
best,
Jacek
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 135 | |
| 102 | |
| 67 | |
| 65 | |
| 56 |