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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Summarize table

Hi

 

I am new to PBI, and I need to calculate a column, or make a new table where I can see infomration of 2 tables:
I have a table called 'CLIENT 'where existe the column [ID_CLIENT], it has unique data,

and I have a second table called' DELIVERY ', where I have the same column [ID_CLIENT], but in this table I have information from many more customers.

How can I  get only  the information that is on the 'DELIVERY¨ table, but only the customers of the tabala' CLIENT' only,

How I can remove the second table´s information acording to the clients I have in the first one

 

Here is an example: 

 'CLIENT 

ID_CLIENTIVFV
1023189:00:0017:00:00
1084398:00:0016:00:00
1011748:00:0012:00:00

 

'DELIVERY´

ID_CLIENTDelivery Hour
10231810:00
10843911:00
10117413:23
10114512:00
10124312:00
10231811:00

 

Create a table only with the info in Bold

 

 

Thanks!

1 ACCEPTED SOLUTION
anandav
Skilled Sharer
Skilled Sharer

@Anonymous,

 

Establisg a 1:many relationship between Clinet and Delivery table using Client ID column.

 

Then create a new table (Modelling -> New Table) using:

New Table =
Var t1 = DISTINCT(Client[Clied_ID])
RETURN
NATURALINNERJOIN(t1, Delivery)

 

PowerBI Sample.JPG

 

If this solves your problem please mark as the solution.

View solution in original post

2 REPLIES 2
anandav
Skilled Sharer
Skilled Sharer

@Anonymous,

 

Establisg a 1:many relationship between Clinet and Delivery table using Client ID column.

 

Then create a new table (Modelling -> New Table) using:

New Table =
Var t1 = DISTINCT(Client[Clied_ID])
RETURN
NATURALINNERJOIN(t1, Delivery)

 

PowerBI Sample.JPG

 

If this solves your problem please mark as the solution.

GilbertQ
Super User
Super User

Hi there,

What I would do is to create a relationship between the two tables on the ID_CLIENT

Then I would create a new table from DELIVERY.
Next I would then create a calculated column using the RELATED function to bring across the IV and FV columns.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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