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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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