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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

Create columns in a list

I have a query that comes from multiple databases with many columns each.

From the query I want to extract 10 columns (number of projects)

The problem is that in the future there will be more projects, therefore more columns that interest me.

I have these projects on a list, which will be increased as there are more projects.

Is there a possibility to expand columns using only the names that appear in the list?

Thanks a lot!

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

I understand that what I'm asking for can't be done with Power BI, right?

The problem comes from the database, which is a database in matrix format (I can't change it) and above it's a range and not a table (I can't change it either):

LEJ_0-1653919131299.png

This is a record of hours and each column is a "task".

Before depivotizing, I have to select which columns I do not want to use (which are many). But in the future, when I create new tasks, I do not want to be changing the report.

Syndicate_Admin
Administrator
Administrator

Of course.

On the one hand I have a query with many columns, most of them do not serve me. When it comes to expanding the query, I could filter only by the ones I need, but in the future I will need other new columns, so in order for them to appear in the report, I would need to go back to the transformer and select the new columns:

LEJ_2-1653660215106.png

On the other hand I have a list with the columns I need. In the future, when there are new projects, I will include them in this list:

LEJ_3-1653660372856.png

I would like, that when expanding I only take the columns that match the names of the list. It's possible?

Thanks a lot!

This would be the list

amirabedhiafi
Impactful Individual
Impactful Individual

Can you please provide a detailed example with the input and the expected output ?

 

Amira Bedhiafi
Full Stack Business Intelligence Consultant @Capgemini

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.