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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Here's my measure:
Solved! Go to Solution.
Hi @wbarnes ,
In DAX, string outputs in a measure must be returned as a DAX expression, not as comments (i.e., you can’t use -- for comments inside the formula). Also, "General Number" is not a valid format string for FORMAT—use "#" or just wrap the number in FORMAT without a format string.
Provider ID =
VAR ProviderID =
LOOKUPVALUE(
'Provider Lookup'[Provider ID],
'Provider Lookup'[Provider Name],
'Code Stroke DDR'[Who provided Telestroke Service]
)
RETURN
IF(
ISBLANK(ProviderID),
"No ID",
FORMAT(ProviderID, "")
)
Hi @rohit1991,
That worked perfectly, and thanks for the explanation as to why my measure was not working!!!
Hi @wbarnes ,
In DAX, string outputs in a measure must be returned as a DAX expression, not as comments (i.e., you can’t use -- for comments inside the formula). Also, "General Number" is not a valid format string for FORMAT—use "#" or just wrap the number in FORMAT without a format string.
Provider ID =
VAR ProviderID =
LOOKUPVALUE(
'Provider Lookup'[Provider ID],
'Provider Lookup'[Provider Name],
'Code Stroke DDR'[Who provided Telestroke Service]
)
RETURN
IF(
ISBLANK(ProviderID),
"No ID",
FORMAT(ProviderID, "")
)