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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Sbudd
Helper II
Helper II

Difference in Columns Using Values

Hi

Wondered if any of you can help me....Im trying to do a difference in columns 

My issue is im using a matrix, the columns headers are from a month in column and the Visits, Referrals and Sales are Values.

I would like 2 extra columns Diff and %Diff.

Is this even possible? Or do i need to create a new table?

 

Thanks in advance

Sbudd_0-1633436701984.png

Sbudd_1-1633436860165.png

 

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @Sbudd 

 

Can you provide some sample data in table format? Are the values fields (Visits/Referrals/Sales) columns or measures? And are the Diff and %Diff calculating the difference between two months?

 

It seems the matrix is showing values on rows. If you want Diff and %Diff to be two columns beside two months, you may need to prepare a new table with a different structure for this matrix. And create measures to calculate values.

 

Please provide some sample data we can work on. Thanks. 

 

Best Regards,
Community Support Team _ Jing

amitchandak
Super User
Super User

@Sbudd , you need to add measures like

example

diff = [MTD Sales]-[last MTD Sales]
diff % = divide([MTD Sales]-[last MTD Sales],[last MTD Sales])

 

using

MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))

 

 

Seem like you are looking for a hybrid table

 

if you are looking for a Hybrid display with Matrix Column and measure
https://community.powerbi.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-PowerBI/ba-p/1...
https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/...

vote for Hybrid Table
https://ideas.powerbi.com/ideas/idea/?ideaid=9bc32b23-1eb1-4e74-8b34-349887b37ebc

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

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors