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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.