In Tableau you would put the IF inside the SUM (well, that's one way, there's definitely a few ways to do this)
So something like:
SUM(if [District] = 'West' then [Sales] end)
Yours would be more like
SUM(if [District] = 'West' and [Color] = 'Red' then [Sales] end)
Yes, I already can to make the calculation using that logic. And it wrk well.