Dear all,
I have SharePoint list columns as below. The default value of each columns are:
FRR1 = 101, FRR2 = 102, FRR3 = 103, FRR4 = 104, FRR5 = 105

In PowerApps, I displayed the data in Gallery view. I wanted to add all numbers from FRR1 until FRR5 columns and store it in Total Rating column. The app will sum up all numbers in the columns (that are not default value).
On OnSelect button property, I put below code. However, it does not sum up all items correctly. As you can see on Total Rating column above, the result are all "3". Any solutions to solve this?
ForAll(RenameColumns(Gallery1.AllItems, "ID", "IDD"),
Patch('List Name', LookUp('List Name', ID = IDD),
{
'Total Rating': Sum(
LookUp('List Name', FRR1 <> 101, FRR1),
LookUp('List Name', FRR2 <> 102, FRR2),
LookUp('List Name', FRR3 <> 103, FRR3),
LookUp('List Name', FRR4 <> 104, FRR4),
LookUp('List Name', FRR5 <> 105, FRR5))
}))
Thank you in advance!