Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello All,
I have a chart which has each expression based on column values, the same field values are used as filters also. No when i'm selectting the filters i want't all the other column values to be 0 and only show values for the excluded filters.
Filters:
Country | Group |
US | A |
EE | A |
US | B |
CA | C |
The Chart structure is
Country | Group | ||||
Client | US | EE | A | B | C |
aaa | 10 | 10 | 5 | 2 | 1 |
bbb | 8 | 7 | 6 | 5 | 4 |
cccc | 3 | 2 | 1 | 2 | 3 |
The expressions are as below for Groups
A= Sum({<Group= {A}>}Revenue)
B= Sum({<Group= {B}>}Revenue)
US = Sum({<Country= {US}>}Revenue)
My issue is that when i apply filter on Group A, i see values for Group B and C alos. I want to make these values to 0 and show values for Group A only.
Thanks
i think u need to enclose the expression as
A= Sum({$<Group= {'A'}>} Revenue)
Hello shree,
Thanks, i tried this but does'nt work.this is not hiding the values for group B.
Thanks
HI
Using this it will show only those expression which are selected in filter.
try this.
Use This expression in Conditional
=SubStringCount(Concat(Group,'|'),'A')
And In Definition your normal expression like: Sum({<Group= {A}>}Revenue)
Similarly for other expressions as well.
Hope this will help you.
Regards,
Nirav Bhimani
Hi,
Set analysis will not allow to selections, it will display standard value based on expression..
Use if condition instead of Setanalysis..
if
(group='A',sum(Revenue
))
here it will give '0' when you make selections..
Hope it helps...
//chandra
Thanks all .
This is what used:
if(GetSelectedCount(Group)= 0,Sum({<Group={'A'}>}Revenue),
if(GetSelectedCount(Group)= 1 and GetFieldselections(Group) ='A',Sum({<Group={'A'}>}Revenue),0))
Thanks
Hi,
I think that this will work and has better performance:
A= Sum({<Group*= {A}>}Revenue)
B= Sum({<Group*= {B}>}Revenue)
US = Sum({<Country*= {US}>}Revenue)
The idea is to use the *= operator in the set analysis.