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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Szymon
New Member

Generating Table as a subset of other table

Hi 

 

I have a table with many many columns (the name of the colums are a,b,c, ... z. 

Now I would like to generate a new table, which includes only a subset of the old table, let's say coulms a,k,r. 

 

May I ask you to help out. 

 

Thx

Szymon

1 ACCEPTED SOLUTION

@Szymon 

have you tried this function?

1.PNG

if this is not what you want, could you pls provide some sample data and expected output?

 





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

Proud to be a Super User!




View solution in original post

5 REPLIES 5
Szymon
New Member

@ryan_mayu Many thanks. Is the any "code" solution? 

@Szymon 

do you mean DAX? pls see the function below

https://docs.microsoft.com/en-us/dax/selectcolumns-function-dax

 





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

Proud to be a Super User!




Yes, I mean DAX. 

But, what I understand, the SELECTCOLUMNS gives a scalar value and not the single columns. 

@Szymon 

have you tried this function?

1.PNG

if this is not what you want, could you pls provide some sample data and expected output?

 





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

Proud to be a Super User!




ryan_mayu
Super User
Super User

@Szymon 

you can try reference a new table, then choose columns

1.PNG

2.png





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

Proud to be a Super User!




Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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