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
JulietZhu
Helper IV
Helper IV

How to plot the matix table in the same table from two seperate tables?

I need output like this.

2.PNG

 

But right now, the first row is from one table with no row header (don't know how to show row header). The 2nd and 3rd rows are from another table. How  can I plot them in the same matrix table.

 

1.PNG

 

Dummy table in this link, https://1drv.ms/u/s!AlYpYKwSuOKxhE8L9XLzjjEuUz0i

Thanks,

 

Juliet

 

 

 

 

 

5 REPLIES 5
v-yuta-msft
Community Support
Community Support

Hi JulietZhu,

 

Based on my analysis, relationships between table 'Encounter' and 'Date', 'Transactions' and 'Date' are both many-to-one. So rows in 'Encounter' can't match rows in 'Transactions' because they are many-to-many relationship so that you can put columns from the two tables into one chart. That's why values in [EncounterCount(last n months)] will be blank. In addtion, if you could create a one-to-many or many-to-one relationship between table 'Encounter' and 'Date', you can put columns from the two tables in the same chart.

捕获.PNG 

捕获.PNG 

 

Regards,

Jimmy Tao

@v-yuta-msft

This is the relationship between 3 tables.  Encounter and Transaction are fact table and Date is dimetion table.

1.PNG

 

In this report, when only one date is chosen from slicer, it requires showing the past 4 months' data dynamically.

In order to do this, I have to created MonthYear colum in both encounter and transaction table separately with related function.

So encounter and transaction data can't be shown in the same table. I don’t know if solutions, such as union them together or formatting row or column header etc , will be possible. Tried and still no luck. Thanks

2.PNG

 

 

 

Ashish_Mathur
Super User
Super User

Hi,

 

That is a 141 MB file.  Please trim the file to a couple of MB's max and then share the download link.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur, I only pull 5 months data in and you can find new file in the link. Thanks

Hi,

 

That is still a 51.6MB file.  I will not be able to help.  If possible, please get the file size down to a couple of MB's.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.