Hi All,
I am looking to build a case when statement in the load script area. Basically, I am building an analysis where certain local markets want to exclude fields . For example, for the Germany local market, we would like to exclude all FI vendors starting with 3 and in Spain they want exclude all real estate invoices, and so on and so on.
As these filters will apply to the entire spreadsheet, I was hoping to write the code into the load script area, for ease of use, instead of each olap table but I am getting an error. Is this because you cannot write case when statement in the load script setting? And if not, can you please propose a workaround?
Thank you,
Anna
Also, can you tell me if I can use the variable function in my code such as:

c.eckert:
FILTER (CASE
WHEN table.country = Germany AND table.vendor LIKE 3% THEN 0
WHEN table.country = Spain AND table.type of invoices = real estate THEN 0
WHEN THEN 0
ELSE 1
END) = 1;
Hi Calandra,
I received the below error: Can you please give me a ring to discuss. +44 (0) 7825 756905
celonis error.2.JPG1329135 17.4 KB