Forum Discussion
Anonymous
1 year agoNot applicable
Replace blank with Not assigned
I'm having blank values caused by relationship and with no matched record. But I want to replace it with "Not assigned" text
- 1 year ago
Hi Anonymous ,
Thanks for using Microsoft Fabric Community Forum.
Try using the below DAX to create a new column.Acct Assignment Order - Text (Updated) =VAR AcctAssignment =LOOKUPVALUE('Table2'[Acct Assignment Order - Text],'Table2'[Order Key], 'Table1'[Order Key])RETURNIF(ISBLANK(AcctAssignment) || AcctAssignment = "","Not assigned",AcctAssignment)
Here replace Table 2 with the table name in which there are blanks.
I have replicated the scenario with sample data
Related two tables
Used the newly created column in the visual
Here you can see the blanks are being replaced by Not assigned.
Hope this works for you.
If this helps , please accept as solution to help others find easily and a kudos would be appreciated.
Thank you.
Kedar_Pande
Super User
1 year agoAnonymous
Create a new column:
Acct Assignment Order - Text (Updated) =
IF(
ISBLANK('YourTable'[Acct Assignment Order - Text]),
"Not assigned",
'YourTable'[Acct Assignment Order - Text]
)
💌 If this helped, a Kudos 👍 or Solution mark ✅ would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
- Anonymous1 year agoNot applicable
not working. Acct Assignment Order - Text field & Purchasing Document Key is coming from different table. They are related using Order Key field. When I created the relationship, it shows blank values due to unmatched record.