Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi
I want to count year, if the distinct year = 1 , then shws the list of month , otherwise list of year.
how to make if condition,
I am using this
=
if( count(distinct YEAR)=1 ,MONTH,YEAR) , but it is not getting sufficient output.Hi,
You can try this one
count(distinct if(YEAR=1,MONTH,YEAR))
Thanks & Regards
Its not working
If you make a drilldown dimension group that includes year and month you will get the behavior you want and not have to use an expression.
Regards.
Hi,
Uneed to use the aggr function while using the nested aggrigate functions.
U can use the count(if(aggr(count(distinct YEAR),YEAR)=1,MONTH,YEAR))
Or Send me sample application
Regards
MAnesh
you can try this
Create one variable eg vCountYear and assign this
=
Count(DISTINCT Year) formula to it
After that in list box Expression use this
=
if(vcountYear=1, Month,Year)