Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a data set in table as below :
The RCA field has the values coming from an API in the form of records as below which i want to show as a single record separated by "-"
"customfield_47426":[{"self":"https://jira.ihsmarkit.com/rest/api/2/customFieldOption/97317","value":"Other","id":"97317"},{"self":"https://jira.ihsmarkit.com/rest/api/2/customFieldOption/102002","value":"Duplicate Issue","id":"102002"}]
So to expand the List i wrote the below logic which works to certain extent
= Table.TransformColumns(
#"Renamed Columns2",
{
{
"RCA",
each Combiner.CombineTextByDelimiter(" - ")(
List.Transform( _ , each if _ = null or _ = "" then 0 else [value] )
),
type text
}
}
)
This gives the output as below with error for the null values
How do i resolve this issue ? I have tried replacing null values with "-" etc but still the same conversion error. I even tried replacing the code as below to insert a string which matches the list record but with empty values but still same error comes.
= Table.ReplaceValue(#"Renamed Columns2",null,"[{""self"":"""",""value"":""NA"",""id"":""""}]",Replacer.ReplaceValue,{"RCA"})
Solved! Go to Solution.
hi @Anonymous
You could try this simple way as below:
Just add a steps that replace error with null (or other value).
or just nested it in your formula as below:
=Table.ReplaceErrorValues( Table.TransformColumns(
#"Renamed Columns2",
{
{
"RCA",
each Combiner.CombineTextByDelimiter(" - ")(
List.Transform( _ , each if _ = null or _ = "" then 0 else [value] )
),
type text
}
}
) , {{"RCA", null}})
Regards,
Lin
hi @Anonymous
You could try this simple way as below:
Just add a steps that replace error with null (or other value).
or just nested it in your formula as below:
=Table.ReplaceErrorValues( Table.TransformColumns(
#"Renamed Columns2",
{
{
"RCA",
each Combiner.CombineTextByDelimiter(" - ")(
List.Transform( _ , each if _ = null or _ = "" then 0 else [value] )
),
type text
}
}
) , {{"RCA", null}})
Regards,
Lin
Hi @Anonymous ,
I think the problem is that the "null" value is not list type, even you change it to "-", it's also a string type, not list type.
So you can't use the list.transform() function to it.
I think you need to do the if-else firstly, for example, just using:
if RCA is null then 0
else "your combine / list.transform() function
to do it.
Please try.
Aiolos Zhao
Tried it but still same issue , output http://prntscr.com/qkoyuv
= if "RCA" is null then 0 else (Table.TransformColumns(
#"Renamed Columns2",
{
{
"RCA",
each Combiner.CombineTextByDelimiter(" - ")(
List.Transform( _ , each [value] )
),
type text
}
}
))
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
73 | |
71 | |
55 | |
38 | |
31 |
User | Count |
---|---|
71 | |
64 | |
62 | |
50 | |
46 |