cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hemingt Member
Member

how to add column from another table based on filter condition

Hello,

 

I have several tables.

I want to create a new empty table, then add a new column from another table based on some filters, such as

Table A

Date  Title

May-1    Title-1

May-1 Title-2

May-1 Title-3

May-2 Title-4

 

I want to create a new table C, and add a new column from table A[title] which A[Date]=May-1.

How can I do?

Thank you!

4 REPLIES 4
hongjyan Regular Visitor
Regular Visitor

Re: how to add column from another table based on filter condition

New Table under modeling and input formula:

TableC= CALCULATETABLE(TableA, TableA[Date] = MAY-1)

hemingt Member
Member

Re: how to add column from another table based on filter condition

Thank you @hongjyan 

 

I just want to get one column, in my example is Title, to the new table.  and the condition may have several, in my example, is only one, TableA[Date]=May-1

hongjyan Regular Visitor
Regular Visitor

Re: how to add column from another table based on filter condition

TableC= SUMMARIZECOLUMNS(TableA[Title], FILTER(TableA, TableA[Date] = MAY-1))

hemingt Member
Member

Re: how to add column from another table based on filter condition

Hello @hongjyan 

thank you.

it' did not work in Power Query Editor. The function SUMMARIZECOLUMNS was not recognized.

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 301 members 3,453 guests
Please welcome our newest community members: