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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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