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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Super User
Super User

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors