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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Substracting 2 rows.

Hello, 

 

I have a table with 2 rows, I want a 3rd row with the difference in value of the first 2 rows, How can I do this in power query editor ?

3 REPLIES 3
Anonymous
Not applicable

Hi, I need the difference of 2 rows and not columns..I am able to do it for columns, in my case i have a horizontally long table with 2 rows giving the percentage of sales of 2 countries(hence 2 rows), for 5 different categories(implying 5 Columns), I need a 3rd row showing the differnece in sales% between 2 countries..

Could you give me an  example of the table? in that way i can construct a solid answer for your question

alosada
Frequent Visitor

Hi,

 

you should create a personalized column (in add column menu of power query editor) and there you should add the desired formula. In your case, I think it would be the following:

 

[Column1]-[Column2]

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors