cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

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 6
Highlighted
Super User III
Super User III

Re: How to calculate row total

Hi @sumitghosal 

 

Can you provide your current DAX expression and what outcome you expect?

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Highlighted
Super User IV
Super User IV

Re: How to calculate row total

@sumitghosal ,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/



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Highlighted
Helper I
Helper I

Re: How to calculate row total

Spoiler
 

@amitchandak and @Mariusz 

Thanks for your quick response. @amitchandak  what is "_1" and [_1]?

 

Best regards,

Sumit

Highlighted
Super User IV
Super User IV

Re: How to calculate row total

@sumitghosal , 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.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Highlighted
Helper I
Helper I

Re: How to calculate row total

@amitchandak Oh, ok, got it, thank you.  but it's not giving me the desired outcome. Its calculating totals at each row level correct, but not the overall total. May be I am missing something.

 

Best regards,

Sumit

Community Support
Community Support

Re: How to calculate row total

Hi @sumitghosal ,

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.

row total.png

 

Best Regards,
Yingjie Li

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors