Forum Discussion
How to calculate row total
Hi All,
Here is another issue I am trying to solve. How to calculate this row totals to get the true sum.
Appreciate any help.
Best regards,
Sumit
6 Replies
- amitchandak
Super User
Anonymous ,You if do something like that
sumx(summarize(Table,Table[Commodities],"_1",[Progress Plan]),[_1])
, You can add more level
or check with isfiltered and chnage formula
if( isfiltered(Table[Commodities]) || isfiltered(Table[Sub Commodities]), [Progress Plan],[new formula ])https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/- AnonymousNot applicable
amitchandak and Mariusz
Thanks for your quick response. amitchandak what is "_1" and [_1]?
Best regards,
Sumit
- amitchandak
Super User
Anonymous , I am giving a name of the column in "" and then when use it I use in [] . So we are creating the final total from row level. So try to force row-level formula to row-level, those are the group by's of summarize and then adding it up.
- v-yingjl
Community Support
Hi Anonymous ,
If you want to calculate sum of each row, you can just create a calculate column like:
Row of sum = [column1] + [column2] + [column3] +... ,
and put them in a table visual, you will get the sum of all row totals when enable totals in the table.
Best Regards,
Yingjie LiIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.