Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi,
I have a report with multiple tables on it, everything is working currently until I select the below field as a filter and it just doesn't populate with any account names.
I have added the formula I am using to return the account name from another table, but can't work out what it is I am doing wrong.
Can anyone help or point me in the right direction please?
Thanks!
Solved! Go to Solution.
Hi @timward10
Try this one:
Account Name from Demand Gen = VAR UltimateParentCode = SELECTEDVALUE(event[Ultimate Parent IFS Code]) VAR UltimateParentCodeAsText = CONVERT(UltimateParentCode, STRING) // Convert integer to text VAR MatchedAccount = LOOKUPVALUE( 'Demand Gen Target List'['Demand Gen Account Name'], 'Demand Gen Target List'[InvoiceCustomerNumber], UltimateParentCodeAsText, // Now comparing text-to-text BLANK() ) RETURN IF(ISBLANK(MatchedAccount), "Not Found", MatchedAccount)
If this post helps, then please don't forget to give a "Kudos" – I’d truly appreciate it!
Thank you.
Hi @timward10 ,
Thank you for reaching out to Microsoft Fabric Community Forum.
can you try the below dax measure
Account Name from Demand Gen =
VAR UltimateParentCode = VALUE(SELECTEDVALUE(event[Ultimate Parent IDS Code]))
VAR MatchCheckCount =
LOOKUPVALUE(
'Demand Gen Target List'[Demand Gen Account Name],
'Demand Gen Target List'[InvoiceCustomerNumberPM], UltimateParentCode,
BLANK()
)
RETURN
IF(ISBLANK(MatchCheckCount), "Not Found", MatchCheckCount)
Regards,
Chaithanya.
Hi @timward10
Try this one:
Account Name from Demand Gen = VAR UltimateParentCode = SELECTEDVALUE(event[Ultimate Parent IFS Code]) VAR MatchedAccount = LOOKUPVALUE( 'Demand Gen Target List'['Demand Gen Account Name], 'Demand Gen Target List'[InvoiceCustomerNumber], UltimateParentCode, BLANK() ) RETURN IF(ISBLANK(MatchedAccount), "Not Found", MatchedAccount)
Thanks, I am getting this error message now around formatting.
@Elena_Kalina I have fixed the format issue, but it is not returning any account names, just 'Not matched' the whole way down? Thanks
Hi @timward10
Try this one:
Account Name from Demand Gen = VAR UltimateParentCode = SELECTEDVALUE(event[Ultimate Parent IFS Code]) VAR UltimateParentCodeAsText = CONVERT(UltimateParentCode, STRING) // Convert integer to text VAR MatchedAccount = LOOKUPVALUE( 'Demand Gen Target List'['Demand Gen Account Name'], 'Demand Gen Target List'[InvoiceCustomerNumber], UltimateParentCodeAsText, // Now comparing text-to-text BLANK() ) RETURN IF(ISBLANK(MatchedAccount), "Not Found", MatchedAccount)
If this post helps, then please don't forget to give a "Kudos" – I’d truly appreciate it!
Thank you.
Hi @timward10 ,
If your filter isn’t showing any account names, here are a few things to check:
FilteredAccounts =
CALCULATETABLE(
VALUES(AccountsTable[AccountName]),
FILTER(
AnotherTable,
AnotherTable[Condition] = "Value"
)
)
If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.
translation and formatting supported by AI
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |