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

Need Help with DAX to calculate variance between two matrixes

hi, I need help calculating variances between two matrixes in power BI where both matrixes are from the same table .

my Table is called Forecast as below 

 

KeyCreated onFY Year Fy Month FCST Value 
11/01/202320241 $            500.00
210/01/202320241 $            600.00
310/02/202320241 $            100.00
412/02/202320241 $            200.00
55/03/202320242 $            700.00
610/03/202320242 $            500.00
720/03/202320242 $            600.00
830/03/202320242 $            200.00
99/04/202320242 $            100.00

 

 

I have 3 slicers - one for selecting two different creation date and one for selecting FCST FYYear and month 

in the first slicer user selects : 10/01/2023

in the second slicer user selects : 12/02/2023

and in the 3rd slicer they ask to see what they have forcasted on above two dates for JAN 2024

two different matrixes will show them the results (should this be in one matrix?) 

the result of the matrixes are as below: 

1st: 

10/01/202320241 $  100.00

 

2nd matrix:

12/02/202320241 $  200.00

 

I need to have a 3rd matirx that shows the variance, for thsi example the variance is $100

is this possible via one table? or do I need two tables? 

Appreciate your help.

2 REPLIES 2
lbendlin
Super User
Super User

Are you planning to do this with a data model or with a bunch of disconnected tables? Instead of the first two slicers you could use one "Between" slicer.

there is only one table which has all the data, all the creation dates and all the forecasts 
I tried the Between slicer , but users want to see the results on two exac dates not in between dates. 

thanks

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.