Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

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
v-yingjl
Community Support
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.

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.

amitchandak
Super User
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/

Anonymous
Not applicable

Spoiler
 

@amitchandak and @Mariusz 

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

 

Best regards,

Sumit

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

Anonymous
Not applicable

@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

Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

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

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.