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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.