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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
dmarangop
New Member

Variation between two columns in a Matrix

Hi!

 

I created a Matrix with the sales information of 2020 and 2021, and I need to show in a third column the variation bewteen both years, like this, I dont know how to do this!, please help me

 

Category20202021%Variation
Deodorants$254,885$386,447 
Footcare$173,832$272,357 

 

Congrats,

 

Diana A

1 ACCEPTED SOLUTION
negi007
Community Champion
Community Champion

@dmarangop You can create a measure like below. and change the format to percentage

 

Option 1: If you have already have two measures for both 2020 and 2021

Variance = Sum(2021)/Sum(2020)-1

 

Option 2: if you do not have seperate measure

variance = (calcualte(sum(sales), year='2021') / calcualte(sum(sales), year='2021') ) -1 

 

let me know if it helps you




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



Proud to be a Super User!


Follow me on linkedin

View solution in original post

1 REPLY 1
negi007
Community Champion
Community Champion

@dmarangop You can create a measure like below. and change the format to percentage

 

Option 1: If you have already have two measures for both 2020 and 2021

Variance = Sum(2021)/Sum(2020)-1

 

Option 2: if you do not have seperate measure

variance = (calcualte(sum(sales), year='2021') / calcualte(sum(sales), year='2021') ) -1 

 

let me know if it helps you




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



Proud to be a Super User!


Follow me on linkedin

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.