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
CesarBoldrino
Frequent Visitor

Linking Revenue Matrices for Comprehensive Customer Insights

Hello,

I have two matrices side by side. The right matrix shows revenue across all months by customer, while the left one only displays revenue for the last two closed months by customer(april is not closed now). When I click on a customer in the left table, I want the right table to show revenue across all months for that customer.

Can you help me?

CesarBoldrino_0-1712840253131.png

CesarBoldrino_1-1712840283258.png

 

 

1 ACCEPTED SOLUTION
CesarBoldrino
Frequent Visitor

solved! 

var _diff = CALCULATE(sum(View_Forecast_Revenue[Revenue]),View_Forecast_Revenue[FRE_Periode] = _CurrentPeriode,dim_Calendar[IsLCM]= 1,ALL(dim_Calendar)) -CALCULATE(sum(View_Forecast_Revenue[Revenue]),View_Forecast_Revenue[FRE_Periode] = _CurrentPeriode,dim_Calendar[IsPreLastClosedMonth]=1,ALL(dim_Calendar))

Return IF(ISINSCOPE(dim_Calendar[ShortMonthName]),CALCULATE(sum(View_Forecast_Revenue[Revenue]),View_Forecast_Revenue[FRE_Periode] = _CurrentPeriode,dim_Calendar[IsM2M]= 1),_diff)

View solution in original post

1 REPLY 1
CesarBoldrino
Frequent Visitor

solved! 

var _diff = CALCULATE(sum(View_Forecast_Revenue[Revenue]),View_Forecast_Revenue[FRE_Periode] = _CurrentPeriode,dim_Calendar[IsLCM]= 1,ALL(dim_Calendar)) -CALCULATE(sum(View_Forecast_Revenue[Revenue]),View_Forecast_Revenue[FRE_Periode] = _CurrentPeriode,dim_Calendar[IsPreLastClosedMonth]=1,ALL(dim_Calendar))

Return IF(ISINSCOPE(dim_Calendar[ShortMonthName]),CALCULATE(sum(View_Forecast_Revenue[Revenue]),View_Forecast_Revenue[FRE_Periode] = _CurrentPeriode,dim_Calendar[IsM2M]= 1),_diff)

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.