The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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, "")
)
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
36 | |
14 | |
12 | |
8 | |
7 |