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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Ejykso
Helper I
Helper I

Variance in Matrix

Hi All,

I'm stuck and will appreciate it if someone can help me with this. 

I have a matrix coming up as this:

End of Week19.2023 12.2.2023 Total
PeriodVol Vol Vol
1-7 Days20 10 30
8-14 Days20 10 30
15-21 Days10 20 30
21days +55 30 85
Total105 70 175

 

The dates in the matrix all came from the same column rundate and the values came from Countrows(datatable) which gives the total count. When this total is put in the values section of the matrix, it goes to the appropriate section as seen in the table. The issue is that I'm trying to have a variance of the values of the two dates instead of the total that the matrix has put for me. It would have been good if there's something like enable Variance just like we have subtotals and Grandtotals.  How do I get the variance of these values?

2 REPLIES 2
amitchandak
Super User
Super User

@Ejykso , You can use isinscope to replace grand total/subtotal with variance measure

 

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

 

for variance

 

Power BI Abstract Thesis: How to use two Date/Period slicers

https://youtu.be/WSeZr_-MiTg

 

Day Intelligence - Last day, last non continous day
https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5-5c324...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks amitchandak, However, the link is not opening anymore and I couldn't get to see how to replace this built-in subtotals with variance.  I'll appreciate it if you could give an example using the table above. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.