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

Creating a table based on fields from another tables

Dear all,

 

I want to create table based on fields from another tables.The following are the tables.

 

Billing              Collection        Overdue           Bounce

Loankey,           Loankey,            Loankey,            Loankey,

Loanno,            Loanno,             Loanno,              Loanno,

branch,             branch,              branch,               branch,

Monthyr           Monthyr            Monthyr              Monthyr

 

Now i want to create a new table with only 4 fields from all tables.

 

 

Newtable

Loankey,

Loanno,

 branch,

Monthyr

 

Regards,

Joshua.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Table = UNION(SUMMARIZE(Billing,Billing[Account No],Billing[Key],Billing[Amount ],Billing[MonthYr ],Billing[Flag]),

SUMMARIZE(Bounce,Bounce[Account No],Bounce[Key],Bounce[Amount],Bounce[MonthYr],Bounce[Flag]),

SUMMARIZE(Collection,Collection[AccountNo],Collection[key],Collection[Total],Collection[MonthYr],Collection[Flag]),

SUMMARIZE(Overdue,Overdue[AccountNo],Overdue[key],Overdue[OVERDUEAmount],Overdue[MonthYr],Overdue[Flag]),

SUMMARIZE(Register,Register[AccountNo],Register[key],Register[PRINCIPALAMOUNT ],Register[MonthYr ],Register[Flag]))

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Table = UNION(SUMMARIZE(Billing,Billing[Account No],Billing[Key],Billing[Amount ],Billing[MonthYr ],Billing[Flag]),

SUMMARIZE(Bounce,Bounce[Account No],Bounce[Key],Bounce[Amount],Bounce[MonthYr],Bounce[Flag]),

SUMMARIZE(Collection,Collection[AccountNo],Collection[key],Collection[Total],Collection[MonthYr],Collection[Flag]),

SUMMARIZE(Overdue,Overdue[AccountNo],Overdue[key],Overdue[OVERDUEAmount],Overdue[MonthYr],Overdue[Flag]),

SUMMARIZE(Register,Register[AccountNo],Register[key],Register[PRINCIPALAMOUNT ],Register[MonthYr ],Register[Flag]))

Seward12533
Solution Sage
Solution Sage

Create Table from Modeling tab.

New table = VALUES(billing[ColName])
Anonymous
Not applicable

Dear Seward ,

i will explain with an example 

 

Billing:

Branch           Loankey             Loanno     Monthyr    amount  

Bangalore      124Jun-18          124           Jun-18        2200

 

 

Collection:

Branch           Loankey             Loanno     Monthyr    amount  

Bangalore      124Aug-18        124           Aug-18        1800

 

 

Now i want to create a new table

 

NewTable:

Branch           Loankey             Loanno     Monthyr    amount  

Bangalore      124Jun-18          124           Jun-18        2200

Bangalore      124Aug-18        124           Aug-18        1800

 

Regards,

Joshua.

Would not use values for that. Can merge tables in Dax I usually do that and most of the data shaping inside power query. You would use Combine queries merge.

https://youtu.be/A1OgxKZmbqg

Anonymous
Not applicable

Dear Seward,

 

Thanks for ur reply.

New table =VALUES(billing[Loankey],overdue[Loankey],bounce[Loankey],collection[Loankey])

will it works because the Loankey in New table must contain data loankey of all four tables.

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.