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
marcofalzone
Helper I
Helper I

Cross Check Matrix Visual

Hi Community,

I have a dataset with transactions between companies. Parties (From / To) can both sell and purchase each other.

Data Table (example): 

Table.jpg

 

The check I want to perform on the dataset is the following: "the sum of Amounts between pairs (ie, A vs B and B vs A) should be zero". In other words, Revenues of A vs B, must be equal to Costs of B vs A. 

I'm trying to figure out how to achieve it through a Matrix visual that allows me to check the mismatches between pair (if any), otherwise returns zero (in case of match).

It's quite easy to configure a Power BI matrix visual like the following, where the amounts measure is a simple "SUM of Amount", and companies (From / To) are put in the row / columns respectively. In this case, to detect where the mismatch is I need to check both rows and columns, and the other indicator is the bottom-right corner (total, must be zero too).

 

Matrix1.jpg

 

This is not the kind of matrix I'm looking for, I would prefer something like the following, where only the mismatching pairs are visible. In other words, a matrix that shows where SUM of Amount (A vs B) <> SUM of Amount  (B vs A), which can be written also as Sum of Amounts (A vs B) + Sum of Amounts (B vs A) <> 0.

 

In this way, the matrix would be eye catching, showing relevant mismatches only.

Matrix2.jpg

 

Any tip to achieve the above?

Thanks for your kind support

Marco

 

 

1 ACCEPTED SOLUTION
DataNinja777
Super User
Super User

Hi @marcofalzone 

 

I produced your required output of the intercompany mismatch matrix.

Sakiko_2-1695186326842.png

 

In order to make Power BI recognize matching revenue and costs transactions recorded by as identical, I created a helper column like below.

Sakiko_1-1695186288419.png

Then I created calculated columns to identify the mismatch.  

Sakiko_3-1695186380931.png

I will omit details of each step, but instead, I attach the link to the pbix file below.   

Intercompany mismatch matrix.pbix

 

View solution in original post

2 REPLIES 2
marcofalzone
Helper I
Helper I

Thank you @DataNinja777, I do really appreciate your contribution. 

It's the result I was looking for. I need to adapt to the actual dataset, since the example table is semplified for better understanding, but it should be easy to do.

Thank you.

Marco

DataNinja777
Super User
Super User

Hi @marcofalzone 

 

I produced your required output of the intercompany mismatch matrix.

Sakiko_2-1695186326842.png

 

In order to make Power BI recognize matching revenue and costs transactions recorded by as identical, I created a helper column like below.

Sakiko_1-1695186288419.png

Then I created calculated columns to identify the mismatch.  

Sakiko_3-1695186380931.png

I will omit details of each step, but instead, I attach the link to the pbix file below.   

Intercompany mismatch matrix.pbix

 

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.