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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
reggiete2005
Frequent Visitor

Comparing values from 2 different matrix visuals.

Hello All, 

 

I am needing help trying to write dax logic to compare values between 2 matrixs. Both visuals utilize 2 different data tables. What i am trying to accomplish is comparing the values between both matrixs, to find the variance between them. 

 

For Example, in the below screenshot, i am trying to compare the values highlighted in yellow. The value in January for the first column/row is 7.39 (FIrst Screenshot) and 3.22(Second Screenshot) for the same column/row headers. I am looking to create a measure and place in a new visual that will show the variance in January for the first column/row would be 7.39-3.22. Same logic would apply for new row, comparing 1.16- 0.29.

 

Below are the measures used in the matrix screenshots below 

 

KPI_MarketComparison_OB_DTI_FICOLTV =
IF(
    HASONEVALUE(OB_Market_Data[Fico_Buckets]),
    DIVIDE(
        [KPI_MarketComparison_LockVol],
        CALCULATE([KPI_MarketComparison_LockVol], ALL(OB_Market_Data[Fico_Buckets],OB_Market_Data[LTV_Buckets]))/1.0
    ),
    divide([KPI_MarketComparison_LockVol], CALCULATE([KPI_MarketComparison_LockVol], ALL(OB_Market_Data[Fico_Buckets],OB_Market_Data[LTV_Buckets]))/1.0
))

 

KPI_MarketComparison_Logan_DTI_FICOLTV =
IF(
    HASONEVALUE(Loan_Details[Fico_Buckets]),
    DIVIDE(
        [KPI_Locks],
        CALCULATE([KPI_Locks], ALL(Loan_Details[Fico_Buckets],Loan_Details[LTV_Buckets]))/1.0
    ),
    divide([KPI_Locks], CALCULATE([KPI_Locks], ALL(Loan_Details[Fico_Buckets],Loan_Details[LTV_Buckets]))/1.0
))

 

Capturenew.JPG

1 REPLY 1
some_bih
Community Champion
Community Champion

Hi @reggiete2005 have you already try to connect your buckets (like <600 or Blank...) via relationship? This would be the best

 

Wanted measure for your case should be simple

Measure diff= [KPI_MarketComparison_OB_DTI_FICOLTV]-[KPI_MarketComparison_Logan_DTI_FICOLTV]





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors