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! It's time to submit your entry. Live now!
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
| User | Count |
|---|---|
| 49 | |
| 37 | |
| 33 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 130 | |
| 100 | |
| 56 | |
| 37 | |
| 37 |