Sum select

Happy new year to All,
These formula give me the total sum of all the sales. What I need is only for the totals of the customer name.

SUM(SELECT( Orders[Total Cost],in([Name],list[_THISROW].[Name])

If(isblank([Name]),0,SUM(SELECT( Orders[Total Cost], ([Name] = [_THISROW].[Name]))))

Thanks

0 7 336
7 REPLIES 7

Your second expression looks good to me. Doesnโ€™t it work?

Hi,
No it doesnโ€™t. It gives me the total of all.
Please see the image for ref.

Iโ€™m afraid I donโ€™t understand what the cause of the problem might be. I hope someone else can help. Good luck!

Hi all,
Anybody can help please?

Hi @reggieneo Could you please try

If(isblank([Name]),0,SUM(SELECT( Orders[Total Cost], ([Customer Name] = [_THISROW].[Name]))))

I made a little app called โ€œTotal practiceโ€ with the following expression:

if(isblank([first_name]),0,sum(SELECT( MOCK_DATA[Amount], [first_name] = [_THISROW].[first_name])))

The table name and the name of the columns are different but the expression works.

You can find the sample app here:

https://www.appsheet.com/portfolio/230844

Foolish me. Itโ€™s an obvious mistake . Thanks. It worked!

Thanks for effort to help me too Kirk.

Top Labels in this Space