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
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, "")
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 10 | |
| 10 | |
| 6 | |
| 6 |