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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
gusdcruz
Helper I
Helper I

merge long and wide tables

Ok boys and girls,

I am stuck (as usual...). here is the overall goal that I am trying to achieve. I want users to compare their inputed values to a standard table.

I have a standard table that contains values that will never change, in this table I have 3 different "programs" traditional, performance and growth, for each of these programs I have the estimated gorwth of an animal at certain life stages

Capture.JPG

I am using Power Apps for the users to populated their values which will go to SharePoint which is been imported into PowerBI. here is an example of the input table from sharepoint list

Capture.JPG

I would like to compare the growth of this animal from Juju's dairy to the starndard table above for each of the Life Stage, so match ADG bith to 8 from the input table to the Birth to 8 weeks from the standard table.

How do I do this?

I am also open for suggestions on how to implement this process, since I am not sure I have the best solution to achieve my goal.

thank you for your time in advance.

Gustavo

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @gusdcruz 

For your raw data structures, it couldn't be merged. Since there is no match column between two tables.

For example: why ADG bith to 8 column from the input table could match with the Birth to 8 weeks from the standard table.

So you need to adjust your data structures to keep them have the matching column as below:

For input table, it should like this:

3.JPG

For standard table, it should like this:

4.JPG

Then Merge them as below:

5.JPG

 

Now, expand the column and compare them.

And here is a demo file, please try it.

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @gusdcruz 

For your raw data structures, it couldn't be merged. Since there is no match column between two tables.

For example: why ADG bith to 8 column from the input table could match with the Birth to 8 weeks from the standard table.

So you need to adjust your data structures to keep them have the matching column as below:

For input table, it should like this:

3.JPG

For standard table, it should like this:

4.JPG

Then Merge them as below:

5.JPG

 

Now, expand the column and compare them.

And here is a demo file, please try it.

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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! Prices go up Feb. 11th.

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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