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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

how to include union of data in 1 visual

hello all, 

this might be quite simple but i need some help.

 

i have 2 tables of data:

1. Back Order value for each month for each product and customer: 

bo.PNG

2. sales value for each month for each product

sales.PNG

there could have SKU that appear in only 1st table but not 2nd table, or vice versa. (eg in above, SKU 1 has back order in Jan but no sales in Jan) 

 

in the visual (could be a simple line chart or matrics table), i want to show for each month, what is the back order and sales for each product. product that appear in either the back order table or the sales table need to be included in the table. 

result.PNG

Can someone explain how i can link to 2 tables and model this? 

i tried by either linking SKU, or SKU_Month in the 2 tables but seem not working.

SKU1, which only has back order in Jan but no sales, does not appear in the table, if i use the "month" from sales table as Rows.

 

 

result 2.PNG

 

 

 

 

6 REPLIES 6
amitchandak
Super User
Super User

@Anonymous 

You need to create common dimensions SKU and month/date and join with your table and then you can look data together by using these dimensions. 

Refer this guideline doc from Microsoft : https://docs.microsoft.com/en-us/power-bi/guidance/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

 hi @amitchandak  do you mean have a field SKU&Month in each table, and then join the table?

 

i did this:

1.PNG

but the results are not i wanted:

11.jpg

the visual @Pragati11  share above is what i wanted. im just not sure how to easily create the 3rd table of "SKU Month Details" 

Pragati11
Super User
Super User

Hi @Anonymous ,

 

I have created a data model as follows using your 2 tables:

sku1.png

I have created an additional table - SKU Month Details.

This table has got a mapping between every SKU against every MONTH values. Data is shown below:

sku2.png

 

Then I created the following relationships:

  1. SKU Month Details <--> SKU Sales ON "SKU No" (bi directional)
  2. SKU Sales <--> SKU Back Order ON "SKU No" (bi directional)

 

Then I created a visual with details as follows:

sku3.png

On this visual I have moved columns from the tables as follows:

  1. SKU No --> "SKU Month Details" table
  2. Month --> "SKU Month Details" table
  3. Back Order --> "SKU Back Order" table
  4. Sales --> "SKU Sales" table

Hope this solution works, as it works at my end.

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

hello @Pragati11  how to create the 3rd table "SKU Month Details" easily though? assuming if we have a lot of data points. 

Hi @Anonymous ,

 

I created this table in excel spreadsheet to have a mapping between Month and SKU No based on the sample data that you provided.

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

If you make an effort to learn the correct data modeling techniques, you'll know how to do such standard things in no time.

 

Please watch these for a start (it'll show you how to solve many other problems as well):

https://www.youtube.com/watch?v=_quTwyvDfG0

https://www.youtube.com/watch?v=78d6mwR8GtA

 

Best

D

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.