Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi,
I am summarizing data from one table into another. Part of the data in the original table is a column of type text which I generate a comma delimited summary string.
Issues =
var ft = FILTER(RELATEDTABLE(Data),
[ID] = Data[ID] && Data[Result] <> "Pass" &&
Not ISBLANK(TRIM(Data[Issue])))
var issuessummary = CONCATENATEX(ft, Data[Issue], ",")
return
issuessummaryThis works perfectly but I realized that the return values can be duplicate, so a result value string for issuessummary could equal "ABC", "DEF", "ABC", "xyz". I would like to remove the duplicate in the return string to represent "ABC", "DEF", "xyz".
Is there a way to accomplish that?
Regards
Solved! Go to Solution.
In this scenario, since you have duplicate Issues for same ID, you should create a "summarized" data table for filtering the context. You can create a calcuated table like below:
Data2 = SUMMARIZECOLUMNS(Data[ID],Data[Issue],Data[Result])
Then you can involve the calcuated table in your formula.
Issues =
var ft = FILTER(RELATEDTABLE(Data2),
[ID] = Data2[ID] && Data2[Result] <> "Pass" &&
Not ISBLANK(TRIM(Data2[Issue])))
var issuessummary = CONCATENATEX(ft, Data2[Issue], ",")
return
issuessummary
Regards,
Simon Hou
In this scenario, since you have duplicate Issues for same ID, you should create a "summarized" data table for filtering the context. You can create a calcuated table like below:
Data2 = SUMMARIZECOLUMNS(Data[ID],Data[Issue],Data[Result])
Then you can involve the calcuated table in your formula.
Issues =
var ft = FILTER(RELATEDTABLE(Data2),
[ID] = Data2[ID] && Data2[Result] <> "Pass" &&
Not ISBLANK(TRIM(Data2[Issue])))
var issuessummary = CONCATENATEX(ft, Data2[Issue], ",")
return
issuessummary
Regards,
Simon Hou
Hi Simon,
When I tried the solution, I get an error "Cannot find table Data2" and I get red squiglly lines for the Data2[ID] and Data2[Result] values.
Regards,
Loganwol
Check out the April 2026 Power BI update to learn about new features.
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.
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 32 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 66 | |
| 58 | |
| 31 | |
| 25 | |
| 24 |