cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate II
Advocate II

Re: create new table with partial columns from another table in dax

@Greg_Deckler I usually follow this steps; try not to bother with dax regarding minor stuffs; like duplicate table, drop the unnecessary column, if required, remove duplicates, then if required, add the relationship manually. Yet just wanted to refresh my memory with dax expressions... Smiley Very Happy

Highlighted
Resolver III
Resolver III

Re: create new table with partial columns from another table in dax

Try using SUMMARIZECOLUMNS ... 

Highlighted
Advocate I
Advocate I

Re: create new table with partial columns from another table in dax

I think selectcolumns() is what you are looking for:

 

https://msdn.microsoft.com/en-us/library/mt761759.aspx

Highlighted
Advocate I
Advocate I

Re: create new table with partial columns from another table in dax

 I am not a pro power bi user. I think I find out an easy way to solve your problem if we are facing the same problem. 

TABLE B = 

SELECTCOLUMNS(CALCULATETABLE( TABLEA,FILTER(TABLEA,TABLEA[col1]=x)),"col1",'TABLEA'[col1],"col2",TABLEA[col2])
 
Consider the duplicate rows, you can wrap a "DISTINCT" on the formula as below"
 

TABLE B = 

DISTINCT(SELECTCOLUMNS(CALCULATETABLE( TABLEA,FILTER(TABLEA,TABLEA[col1]=x)),"col1",'TABLEA'[col1],"col2",TABLEA[col2]))
 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors