Alright guys, I feel like I am going crazy. I have a beast mode card that works really well in calculating months on hand inventory. I am now trying to create an new ETL that does a group by vendor and I am trying to inject the same code. The issue is that 'Available Inventory' is always returning null for some reason. Is this a bug with Domo? Or is there an issue with my code?
CASE
when Sum(CASE when `Type`='Sales' then `Value` else 0 end) = 0 then 0
ELSE
Sum(CASE when `Type`='Available Inventory' then `Value` else 0 end)
/
Sum(CASE when `Type`='Sales' then `Value` else 0 end)
END
The result I am getting is:
I have even tried simply filtering Type = 'Available Inventory' and nothing is returning. The odd part is that the only Type that is found is 'Sales'
Any advice would be great. Thanks!