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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Nilson
Frequent Visitor

Transforming data into new structure

Hello everybody,

 

now that I have failed several times, I want to ask for your support.

 

As a basis, I have shown several tables in the form of (1). I have a fixed number of 5 products at the moment with the corresponding numbers per month. The numbers per month are continuous, so they expand every month.

Now I want to translate the products from (1) into new product names by (2). Subsequently (3) is to be recorded, where all products from (4) are recorded and the monthly values ​​of the same product names are now added up (Prod_AA = Prod_01 + Prod_02).

 

000071.jpg

 

 

I hope I was able to describe the problem to you to some extent. I would be really happy for your help.

 

Kind regards 🙂

2 ACCEPTED SOLUTIONS
Adamtall
Resolver III
Resolver III

Hi,

 

You need the table (2)  and make a relationship to the "fact" table (1)

 

Skärmklipp100.PNGSkärmklipp101.PNG

 

/Adam

View solution in original post

VasTg
Memorable Member
Memorable Member

@Nilson 

 

Do you want to create 3 as a visual or a table?

 

If it has to be a visual, follow @Adamtall approach as below.

 

Define relationships as below.

4->2 (Prod_ID_NEW)

2->1(Prod_ID,Prod_id_old)

 

Create a visual from 4(prod_id_new),1(Month1,2,3 etc ->Summarize by SUM).

 

If you want to create 3 as a table, I would recommend to merge 1,2,4 in power query merge and do a GROUP BY prod_id_new.

 

If it helps, mark it as a solution

Kudos are nice too

Connect on LinkedIn

View solution in original post

3 REPLIES 3
VasTg
Memorable Member
Memorable Member

@Nilson 

 

Do you want to create 3 as a visual or a table?

 

If it has to be a visual, follow @Adamtall approach as below.

 

Define relationships as below.

4->2 (Prod_ID_NEW)

2->1(Prod_ID,Prod_id_old)

 

Create a visual from 4(prod_id_new),1(Month1,2,3 etc ->Summarize by SUM).

 

If you want to create 3 as a table, I would recommend to merge 1,2,4 in power query merge and do a GROUP BY prod_id_new.

 

If it helps, mark it as a solution

Kudos are nice too

Connect on LinkedIn
Nilson
Frequent Visitor

I was thinking way too complex!!
The representation as a visual is completely sufficient for my application.


Thank you both so much! 👍

Adamtall
Resolver III
Resolver III

Hi,

 

You need the table (2)  and make a relationship to the "fact" table (1)

 

Skärmklipp100.PNGSkärmklipp101.PNG

 

/Adam

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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