Forum Discussion
Unable to Extract values from [List]
Hello All,
Lately I am strugging to extract value from [List]. Following are the details
I have column with the [List]. It has multiple values, however, when I am click on it to check it, am not getting any value.
I should be getting an value like this
However, I am not getting.
Could you anyone help on this, why I am not getting values in List. What need to get those values? I know that, its not emply as its syncing data from another table to provide values in SharePoint.
Let me know if you need anymore information.
Hi Chandra_maha ,
This is my test table 1:
Table 2:
Duplicate ID column in table 1:
Split column as following steps:
You will get a table like this:
Then add an index column (this is important):
Close and apply to Power BI. Creata two new columns in table 1:
ID_new = IF('Table 1'[ID - Copy] = MINX(FILTER('Table 1','Table 1'[ID] = EARLIER('Table 1'[ID])),'Table 1'[ID - Copy]),'Table 1'[ID]) Name_new = IF('Table 1'[ID - Copy] = MINX(FILTER('Table 1','Table 1'[ID] = EARLIER('Table 1'[ID])),'Table 1'[ID - Copy]),'Table 1'[Name])Relationship between table 1 and table 2.
Create a table visual like below shown and sort by index column:
If you don't want to show index column, please set it in specific column as belown shown (You'd better rename index column, in the example it is a, so you can reduce column width)
please refer the pbix file.
M code in power query for your reference:
#"Promoted Headers" = Table.PromoteHeaders(Sheet43_Sheet, [PromoteAllScalars=true]), #"Duplicated Column" = Table.DuplicateColumn(#"Promoted Headers", "ID", "ID - Copy"), #"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Duplicated Column", {{"ID - Copy", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "ID - Copy"), #"Changed Type" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"ID - Copy", Int64.Type}}), #"Added Index" = Table.AddIndexColumn(#"Changed Type", "Index", 1, 1, Int64.Type) in #"Added Index"Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
5 Replies
- amitchandakSuper User
Chandra_maha , In column name, on right there is an expand icon are you getting that?
- Chandra_mahaHelper I
Thank you for suggesting that option.
It was quite easy. However, I have another issue now. Could you help me to get the data from extracted values.This is the extracted data from List -
There are multiple values in one cell and I have selected to seperate it by comma
This values work as ID to get the data from another table - Title.
The Title table, has 02 colum.
1st Column - ID
2nd Column - Title
I would like get these title
This is the final expected result, could you please suggest/guide - how to do this? (You can suggest improvisation in following table format). All I want to get this title allinged with names or vise versa.
Name ID Title XYZ 1,2,6,8 BD - Business development BD - Data analytics BD - Shared Improvement portfolio COM - Creative MNO 6,8,10 BD - Shared Improvement portfolio COM - Creative COM - Internal communication CHS 15,59,27 COM - External communication COM - USA communication D&W - Rock mechanics UI 27,18,12 D&W - Well head fatigue D&W - Planning and reporting D&W - Other applications Note - Name and ID - are in different table
ID and Title - are in different table
ID - is common in both table. However, I can not use relationship as there are multiple values on one cell.
I hope above information is helpful to provide the solution 🙂
Thank you!- Chandra_mahaHelper I
Hello,
I have multiple tables in PowerBi. All the data is coming from SharePoint site. I am looking to get the data from
Title table (Which hold the title name and code) like this -
I would like to get the result like this as result
I have User Name in another table, which contain the data extracted (ID's) from the list.
As there are multiple ID’s in one cell, I am unable to create Relationship to get the data. For workaround, I have separated the ID from single cell to other column by using following function
By this, I am getting some ID in 1st column and other ID’s in next column. Because of that, I am unable to aligned all the ID and Title to one user.
Let me know if you need anymore information.
- v-yadongf-msftCommunity Support
Hi Chandra_maha ,
This is my test table 1:
Table 2:
Duplicate ID column in table 1:
Split column as following steps:
You will get a table like this:
Then add an index column (this is important):
Close and apply to Power BI. Creata two new columns in table 1:
ID_new = IF('Table 1'[ID - Copy] = MINX(FILTER('Table 1','Table 1'[ID] = EARLIER('Table 1'[ID])),'Table 1'[ID - Copy]),'Table 1'[ID]) Name_new = IF('Table 1'[ID - Copy] = MINX(FILTER('Table 1','Table 1'[ID] = EARLIER('Table 1'[ID])),'Table 1'[ID - Copy]),'Table 1'[Name])Relationship between table 1 and table 2.
Create a table visual like below shown and sort by index column:
If you don't want to show index column, please set it in specific column as belown shown (You'd better rename index column, in the example it is a, so you can reduce column width)
please refer the pbix file.
M code in power query for your reference:
#"Promoted Headers" = Table.PromoteHeaders(Sheet43_Sheet, [PromoteAllScalars=true]), #"Duplicated Column" = Table.DuplicateColumn(#"Promoted Headers", "ID", "ID - Copy"), #"Split Column by Delimiter" = Table.ExpandListColumn(Table.TransformColumns(#"Duplicated Column", {{"ID - Copy", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), let itemType = (type nullable text) meta [Serialized.Text = true] in type {itemType}}}), "ID - Copy"), #"Changed Type" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"ID - Copy", Int64.Type}}), #"Added Index" = Table.AddIndexColumn(#"Changed Type", "Index", 1, 1, Int64.Type) in #"Added Index"Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- v-yadongf-msftCommunity Support
Hi Chandra_maha ,
In order to better understanding your demands and give the right solution, could you please share with me more screenshots of your data after hiding sensitive information.
Thanks for your efforts & time in advance.
Best regards,
Yadong Fang