Forum Discussion

bbajuscak's avatar
bbajuscak
Helper I
1 year ago
Solved

Display Differences Between 2 Matrices

I have 2 seperate matrices, each built from different data sources, using different tables and table structures. Tables making up each matrix are not related to one another.

Each matrix is a heirarchy showing the work breakdown structure ( stories roll up into epics, epics roll up into projects, projects roll up into initiatives) The heirarchy in each is important.

How can I highlight the differences between the matrices? Matrix 1 being the source of truth.

Ideally I'd like to highlight in Red any items that is out of place from Matrix 1.

I need to be able to visualize what items in matrix 2 are different from matrix 1. Different being both what is missing as well as what items are in a different heirarchy from matrix 1 vs matrix 2.

Below is a screenshot of the 2 matrices currently built out and needing to compare. ie. visualize when a story is assigned to a different epic, or different project and see that heirarchy.

 

 

 

My tables and table structure is different for each matrix as seen below. Circled Red are tables used to create matrix 1. Circled Green are tables used to create matrix 2.

I'd like to create a third, or a new matrix, which displays the heirarchy for only those that are different between the 2 initial matrices.

 

Any insight is greatly appreciated!

 

  • lbendlin's avatar
    lbendlin
    1 year ago

    You will want to clean this up as it will have a massive impact on performance.

     

    Here is the general approach for the comparison

     

     

    DEFINE
    	VAR a = SELECTCOLUMNS(SUMMARIZECOLUMNS(
    							'KI - Epics'[Initiative Name],
    							'KI - Epics'[Project Name],
    							'KI - Story'[Key + Status],
    							'KI - Epics'[Key + Status]),
    			"Column1", 'KI - Epics'[Initiative Name],
    			"Column2", 'KI - Epics'[Project Name],
    			"Column3", 'KI - Story'[Key + Status],
    			"Column4", 'KI - Epics'[Key + Status])
    	VAR b = SELECTCOLUMNS(SUMMARIZECOLUMNS(
    							'Initiatives - Issues'[SUMMARY],
    							'Project - Issues'[SUMMARY],
    							'Epics - Issues'[Key + Status],
    							'Stories - Issues'[Key + Status]),
    			"Column1", 'Initiatives - Issues'[SUMMARY],
    			"Column2", 'Project - Issues'[SUMMARY],
    			"Column3", 'Epics - Issues'[Key + Status],
    			"Column4", 'Stories - Issues'[Key + Status])
    EVALUATE
    	EXCEPT(a,b)

     

14 Replies