Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Icon for Administrator rankAdministrator
3 years ago

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

  • bhelou's avatar
    bhelou
    Icon for Responsive Resident rankResponsive 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 , 

    • Syndicate_Admin's avatar
      Syndicate_Admin
      Icon for Administrator rankAdministrator

      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?