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
ctmah
Frequent Visitor

Create matrix to combine multiple table and add measure

Hi PowerBI experts, 

I'm new to Power BI so seeking help from you guys. 

 

I have two tables 

- Table A with companies' monthly target for multiple products, so you could imagine each company has multiple rows to products, and each product has multuple rows to each month. 

 

- Table B with companies' monthly sales, format is the same as above but only differences is actual sales value. 

 

Many thanks!

 

Kind regards, 

CT.MAH

I'd like to combine these into a matrix visualization, which shows at companies level (row) , each month (column) , target VS actual sales VS % of actual/sales. 

 

How do i add a custom column to the matrix with formula that sum-up the monthly target & sales?

then for each target & sales row there will be % of actual/sales ?

So for each row, repetative of target, sales & % for each month. 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ctmah , based on the month format you can create a date and join them with date table and do analysis. Or you can create common month and other dimension tables and do analysis

 

date = date([Year],[Month],1) //if you have year and month column

date = date(left([month-year],4),right([month-year],2),1) // in 202002 format

date = "01-" & [Month-year] //format Jan-2020

 

refer :https://youtu.be/yPQ9UV37LOU

https://youtu.be/cJqgphIHXz8

 

Create date month or common dimension table using two table

 

https://www.seerinteractive.com/blog/join-many-many-power-bi/

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

See if my webinar on Time Intelligence can help: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-Y...


Appreciate your Kudos.

 

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@ctmah , based on the month format you can create a date and join them with date table and do analysis. Or you can create common month and other dimension tables and do analysis

 

date = date([Year],[Month],1) //if you have year and month column

date = date(left([month-year],4),right([month-year],2),1) // in 202002 format

date = "01-" & [Month-year] //format Jan-2020

 

refer :https://youtu.be/yPQ9UV37LOU

https://youtu.be/cJqgphIHXz8

 

Create date month or common dimension table using two table

 

https://www.seerinteractive.com/blog/join-many-many-power-bi/

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

See if my webinar on Time Intelligence can help: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-Y...


Appreciate your Kudos.

 

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

Hi,

Thanks a lot for your sharing. I managed to create Date table based on the videos you've shared. the YTD, MTD..etc will be explored later😊

 

If i simply has the 2 tables below, i wish to create a measure to calculate the percentage as in red, what's they syntax i can use? 

Thanks again!
Target VS Actual.JPG

Helpful resources

Announcements
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.

June 2025 community update carousel

Fabric Community Update - June 2025

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