I have a problem in OBIEE, I create pie chart but it dosen't show correctly. I write this measure : case when "n_dim_city_senderDim"."sendercityname"='تهران' then '1' when "n_dim_city_senderDim"."PROVINCENAME" IN ('البرز', 'تهران') then '2' end
but 2 should bigger than 1. It shows inverse How can I correct?!
I threw the measure in different places but it didn't work
If I understood you correctly, this
returns
1, while you expect it to return2. That's because there are rows that contain bothprovince_nameas wellsendercitynameequal to / are contained in values you specified.If
provincenameshould take precedence, switch conditions to[EDIT] To illustrate it:
Sample data:
First query:
Second query, whose
CASEexpressions are opposite from the 1st query:See the difference?