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
Syndicate_Admin
Administrator
Administrator

Total Sum on all lines

Well, I'm having trouble doing the following.

I have a table whose rows are types of vouchers, and which has 2 columns, one cost and one sales.

.

What I need is that the sale amount per row is the total and is repeated in all lines, and not just the one corresponding to each line. So in each line you have the type of voucher with its cost and total sales (not just that voucher on the line)

.

Can you help me? Thank you 😌 very much !

2 REPLIES 2
bhelou
Responsive Resident
Responsive Resident

Dear , 

Just create a new column either in power queries or in Data view in poiwer bi Desktop : 

Total = column [ sales ] - column [ cost ] 
//// 
kidnly see if that is the solution , or if not share some samples ( images ) or sample of the file . 

* kindly accept as a solution and a kudo would be gretfull . 
Regards , 

As this is a database direct data model I cannot access power query to create a new column. Is there any alternative created measures or some trick without accessing the power query?

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.