Is it possible to sum corresponding values fr...

Is it possible to sum corresponding values from an EnumList in a table such as below?

@KOIN_BUSYNESS

In a virtual column you can use below expression: SUM(SELECT(Tablename[COST],[CATEGORY]=[_THISROW].[CATEGORY]))

@Levent_KULACOGLU This is the error message I get:

Cannot compare Text with List in ([CATEGORY] = [Vkey].[CATEGORY])

I tried it, but I still have some challenges with the summation. Kindly assist. with the expression

@KOIN_BUSYNESS can you add levent@able3ventures.com as a co-author to your app so that I can check? Thnx.

@KOIN_BUSYNESS may I ask what is [Vkey]?

@Levent_KULACOGLU Vkey is the primary key in that table

@KOIN_BUSYNESS what’s the column type for [Category]?

@Levent_KULACOGLU

LIST It’s a list of food Categories

@KOIN_BUSYNESS

Try this:

SUM(SELECT(TableName[COST], IN([_THISROW].[CATEGORY], TableName[CATEGORY])))

@Levent_KULACOGLU

Thank you, will feedback soon

@KOIN_BUSYNESS

please check this link and see if you can apply the expression you were teaching me. I want to be able to select a list of fruit names and then get their total sum for those select.

appsheet.com - Sample mobile apps for common scenarios Sample mobile apps for common scenarios appsheet.com

@Levent_KULACOGLU

https://bit.ly/2KrCmJr

or

https://bit.ly/2KqpZh0

@Koin_Busyness
Can you share the farmsales app so i can see how you coded it?