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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
lpriceFTW
Helper II
Helper II

SUM a table variable

I want to sum the amount column in my table variable:

 

lpriceFTW_0-1675187127269.png

 

 

As you can see, I create a table stored in a variable "filterFen". Within this table there is a column called "AMT" containing numeric amounts.

 

I simply want to sum all of those amounts and return them in variable "cashSum".

 

Why am I unable to do this and how can I resolve?

 

Thanks!

4 REPLIES 4
Jihwan_Kim
Super User
Super User

Hi,

When trying to calculate SUM of a column in a VAR table, try something like,

SUMX( _filterFen, [AMT] )


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

lpriceFTW_0-1675194380213.png

Does not appear to work. Did I do that correctly?

Hi,

Please share the sample pbix file's link, and then I can try to look into it.

Thanks.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

How do I do that? I do not have a pro license, so I cant share it through the PBI service, and my organization restricts access to files saved in our OneDrive so I can't share it that way either.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.