azzazzello
Technical User
Greetings,
I have a report that I produce with columns
Date, A, B, C, D, Total, Revenue
I have 3 user - inputed parameters
start_time,
end_time,
groupBy
start_time and date_time are used in the query. GroupBy I intend to use to perform a conditional grouping. It is a multivalue field, which contains select options A,B,and C, which correspond to my columns. My intent is to group data by selected options (or by none, if none is selected).
The way i wanted to do this is to make a group on the detail row, make Total and Revenue be =sum(Total.value) and = sum(Revenue.Value) respectively, and have the following Expression in the Group On section for EACH of the 3 grouping options (A,B,C):
The problem I am getting, as I try to get just that one conditional grouping to work, is that when I do NOT select A, the darn thing spits out just one row (it works just fine when I actually select A). I don't know what I should put in the false condition to stop the Grouping from taking place. What do I do? Also, if one could suggest a better way to figure out if a certain Label (or Value) has been selected (exists/contains functions to examine array itself?), I would be greatful
I have a report that I produce with columns
Date, A, B, C, D, Total, Revenue
I have 3 user - inputed parameters
start_time,
end_time,
groupBy
start_time and date_time are used in the query. GroupBy I intend to use to perform a conditional grouping. It is a multivalue field, which contains select options A,B,and C, which correspond to my columns. My intent is to group data by selected options (or by none, if none is selected).
The way i wanted to do this is to make a group on the detail row, make Total and Revenue be =sum(Total.value) and = sum(Revenue.Value) respectively, and have the following Expression in the Group On section for EACH of the 3 grouping options (A,B,C):
Code:
=Iif(join(Parameters!groupBy.Label,",").Contains("A"),Fields!A.value,"")
The problem I am getting, as I try to get just that one conditional grouping to work, is that when I do NOT select A, the darn thing spits out just one row (it works just fine when I actually select A). I don't know what I should put in the false condition to stop the Grouping from taking place. What do I do? Also, if one could suggest a better way to figure out if a certain Label (or Value) has been selected (exists/contains functions to examine array itself?), I would be greatful