Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Help with how to process lists

I currently have two tables,

Objects:

Timestamp ¦ Employee ¦ TaskID

16/8/2020          x            [list] {"fr5634-344"}

17/8/2020          y            [list] {"rg5623-933", "fr5634-344"}

 

The list contains Id's (in text format), and can have 0 or more Id's in them. 

I then have a criteria table that describe what each ID means:

 

ID                  ¦ Value(gbp)

rg5623-933     20

fr5634-344      60

 

---
Currently, I am having problems finding the total value(gbp) of a table. I tried unpacking and seperating with commas, but then lists with more than one ID do not relate to the criteria table.

What is the best way to count the total Value(gbp) of certain amounts of rows from the Objects table (in this example £140)? How can I count how many seperate ID's there are (in this example 3)? 

1 ACCEPTED SOLUTION
lkalawski
Super User
Super User

Hi @Anonymous ,

 

In your case, it is best to split into next lines for records that have more than one item in the list.
To do this:
1.First clear the column of unnecessary characters with Replaced Value to achieve this:

 

Ex1.png

2. Split a column with a separator: comma. Just do not divide into next columns, but into next rows

Ex2.png

Right-click on the column name, select Split by delimiter, then in the new window select comma and in advanced options select into Rows. Additionally, turn off Quote Character.

 

Thanks to this, you will achieve division into appropriate values in the list. Now you just need to link this table to the dictionary table and you will get the results.

 



_______________
If I helped, please accept the solution and give kudos! 😀

View solution in original post

3 REPLIES 3
lkalawski
Super User
Super User

Hi @Anonymous ,

 

In your case, it is best to split into next lines for records that have more than one item in the list.
To do this:
1.First clear the column of unnecessary characters with Replaced Value to achieve this:

 

Ex1.png

2. Split a column with a separator: comma. Just do not divide into next columns, but into next rows

Ex2.png

Right-click on the column name, select Split by delimiter, then in the new window select comma and in advanced options select into Rows. Additionally, turn off Quote Character.

 

Thanks to this, you will achieve division into appropriate values in the list. Now you just need to link this table to the dictionary table and you will get the results.

 



_______________
If I helped, please accept the solution and give kudos! 😀

amitchandak
Super User
Super User

Anonymous
Not applicable

This does not help. I have imported JSON just fine. This question Is not about JSON. I am asking how I can relate a collumn with a list of ID's, to another Table that has the properties of those ID's.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.