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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
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!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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