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
Anonymous
Not applicable

Help with adding variance column to matrix table

Hello,

 

Im hoping this is a simple solution . How can I add variance column that calculates difference between Q1 and Q2 to the table?

 

kornelia92_0-1646944367530.png

 

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

I think your original matrix should be similar to this.

12.png

It is not recommended to apply the 'quarter' field to the matrix column, you need to consider adding new measures to calculate the values of q1, q2, difference between Q1 and Q2.

M_Q1 = CALCULATE(SUM('Table'[Sales] ),FILTER('Table','Table'[Quarter]="Q1"))
M_Q2 = CALCULATE(SUM('Table'[Sales] ),FILTER('Table','Table'[Quarter]="Q2"))
dif = [M_Q2]-[M_Q1]

2.3.png

Please check my attachment for more information.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

I think your original matrix should be similar to this.

12.png

It is not recommended to apply the 'quarter' field to the matrix column, you need to consider adding new measures to calculate the values of q1, q2, difference between Q1 and Q2.

M_Q1 = CALCULATE(SUM('Table'[Sales] ),FILTER('Table','Table'[Quarter]="Q1"))
M_Q2 = CALCULATE(SUM('Table'[Sales] ),FILTER('Table','Table'[Quarter]="Q2"))
dif = [M_Q2]-[M_Q1]

2.3.png

Please check my attachment for more information.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.