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

Matrix with of user-selected forecasts and multi-level differences

Hello All,

Wish I could say I was brand new to PowerBI, but I just can't figure this one out.  

We generate weekly forecasts of a dozen or so rates. I need to create a matrix visual showing the forecast dates, values from two user-selected forecasts, and differences between individual rates.

For example, if the user wants to compare Forecast2 to Forecast3, the end product should look something like:

 

image.png

 

In the actual problem, there are dozens of forecasts from which to choose, and the selections do not have to be from consecutive weeks. Data is currently in a four-column table (sample data below --- apologies, tried to follow the recommended format). 

My specific question is how to calculate differences between the individual rates on the fly and include those differences in the matrix with the forecast rates.

 

Thank you for any help or advice.

JLed

 

ForecastName RateName Month Value 
FC2Rate1'Jan248.7
FC2Rate1'Feb248.6
FC2Rate1'Mar248.3
FC2Rate1'Apr248.0
FC2Rate1'May247.8
FC2Rate1'Jun247.9
FC2Rate1'Jul248.6
FC2Rate1'Aug248.3
FC2Rate1'Sep248.5
FC2Rate1'Oct248.7
FC2Rate1'Nov248.6
FC2Rate1'Dec247.8
FC2Rate2'Jan248.8
FC2Rate2'Feb249.0
FC2Rate2'Mar248.8
FC2Rate2'Apr249.4
FC2Rate2'May248.8
FC2Rate2'Jun248.3
FC2Rate2'Jul248.8
FC2Rate2'Aug248.4
FC2Rate2'Sep248.4
FC2Rate2'Oct247.9
FC2Rate2'Nov248.5
FC2Rate2'Dec247.9
FC2Rate3'Jan2411.6
FC2Rate3'Feb2411.5
FC2Rate3'Mar2411.4
FC2Rate3'Apr2411.0
FC2Rate3'May2411.3
FC2Rate3'Jun2410.8
FC2Rate3'Jul2411.2
FC2Rate3'Aug2410.4
FC2Rate3'Sep2411.1
FC2Rate3'Oct2411.2
FC2Rate3'Nov2410.8
FC2Rate3'Dec2410.3
FC3Rate1'Jan248.1
FC3Rate1'Feb248.4
FC3Rate1'Mar248.4
FC3Rate1'Apr248.2
FC3Rate1'May248.4
FC3Rate1'Jun247.9
FC3Rate1'Jul248.0
FC3Rate1'Aug248.5
FC3Rate1'Sep248.4
FC3Rate1'Oct248.2
FC3Rate1'Nov248.4
FC3Rate1'Dec247.8
FC3Rate2'Jan247.7
FC3Rate2'Feb248.1
FC3Rate2'Mar247.8
FC3Rate2'Apr247.8
FC3Rate2'May248.0
FC3Rate2'Jun248.0
FC3Rate2'Jul247.7
FC3Rate2'Aug247.8
FC3Rate2'Sep247.2
FC3Rate2'Oct247.2
FC3Rate2'Nov247.3
FC3Rate2'Dec247.4
FC3Rate3'Jan2410.2
FC3Rate3'Feb2410.9
FC3Rate3'Mar2410.8
FC3Rate3'Apr2410.1
FC3Rate3'May249.8
FC3Rate3'Jun249.8
FC3Rate3'Jul2410.3
FC3Rate3'Aug2410.2
FC3Rate3'Sep249.9
FC3Rate3'Oct2410.5
FC3Rate3'Nov2410.1
FC3Rate3'Dec2410.6
1 ACCEPTED SOLUTION
jgeddes
Super User
Super User

I am not sure you can get the exact visualization you are looking for but you can get something like this...

jgeddes_0-1712628158673.png

You would need to create two tables of distinct values of 'Forecast Name'. One table for each of the selection slicers.
From there you can create three measures.

Selection One = 
SUMX(
    FILTER(rateTable, rateTable[ForecastName ] = SELECTEDVALUE(selectionTableOne[ForecastName ])),
    rateTable[Value ]
)
Selection Two = 
SUMX(
    FILTER(rateTable, rateTable[ForecastName ] = SELECTEDVALUE(selectionTableTwo[ForecastName ])),
    rateTable[Value ]
)
Selection Difference = 
[Selection One] - [Selection Two]

You do not need to create any relationships between the tables. 





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

Proud to be a Super User!





View solution in original post

2 REPLIES 2
jgeddes
Super User
Super User

I am not sure you can get the exact visualization you are looking for but you can get something like this...

jgeddes_0-1712628158673.png

You would need to create two tables of distinct values of 'Forecast Name'. One table for each of the selection slicers.
From there you can create three measures.

Selection One = 
SUMX(
    FILTER(rateTable, rateTable[ForecastName ] = SELECTEDVALUE(selectionTableOne[ForecastName ])),
    rateTable[Value ]
)
Selection Two = 
SUMX(
    FILTER(rateTable, rateTable[ForecastName ] = SELECTEDVALUE(selectionTableTwo[ForecastName ])),
    rateTable[Value ]
)
Selection Difference = 
[Selection One] - [Selection Two]

You do not need to create any relationships between the tables. 





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

Proud to be a Super User!





Thanks jgeddes for your fast and helpful response! You saved me all kinds of time. I wish Power BI was capable of showing the results in the desired order, but most important was to get the numbers published in a report. 

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
Top Kudoed Authors