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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
bilalg
Regular Visitor

Automatic Query Creation from Table Column

Hey everyone,

 

First time here. I looked for an answer in the community but couldn't find it. I have received a data from an external database in Power BI. Received data is as a flat list of records. I grouped these records by their 'category' attribute. Because each record belonging to the same category have the same record structure. So it makes sense to have them as a separate tables. To come to my question: Now I have a table with one column being the category names, the second column being the data itself.

 

bilalg_0-1687463328064.png

I want to convert each of these tables into separate queries. I can do so by right clicking on tables, and selecting "Add as New Query" option but this is not very future proof. Because. once my data gets updated, I might have more categories. And manually converting tables as new queries can be time consuming once I have more than 30 rows.

 

So question is, is there a way to automate this process? Convert each table value in "all_data" column and add them as a new query?

 

Any help is welcome. Thanks!

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @bilalg 

 

I'm afraid it is not possible to add new queries from table values in a column of an existing query automatically. New queries can only be added manually at present. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

1 REPLY 1
v-jingzhang
Community Support
Community Support

Hi @bilalg 

 

I'm afraid it is not possible to add new queries from table values in a column of an existing query automatically. New queries can only be added manually at present. 

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors