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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.