Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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, "")
)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |