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
swe_sebastian
Regular Visitor

Show difference between first and last column in a matrix instead of sum

Hi

Need help of showing the difference between first and last column in a Matrix.
Also I want to sort the Matrix based on the difference (Ascending or Descending)

I havo no problem showing the sum, but I need to show the difference.

swe_sebastian_0-1676035887771.png

 

2 REPLIES 2
swe_sebastian
Regular Visitor

Hi @AnkitKukreja 


The table is named "Fakturarader"
The Rows are named "Leverantör"
The Columns are "FakturaÅrMånad"
The Value  is "NettoSum"

Not really sure what you mean by sharing "sample data". I have dragged the Matrix to the Desktop.

swe_sebastian_0-1676040098920.png

 

And the Matrix you have in my original post.

AnkitKukreja
Super User
Super User

Hi @swe_sebastian 

 

You can use a measure directly referencing those columns to create a calculation. Can you share the sample data so I can create a measure for this?

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904

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.