Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

Range based on a dimension

$
0
0

Hi guys,

 

I created a variable to cater range that required in my report. But the thing is, things get messy once the dataset does not contains any value for particular range. The range/variable does not appear in the report. Example are as below.

 

Dataset:

 

Item     Band     Value

A          2           100

B          5           150

C          7           200
 

 

 

Range Variable:

=if [Band] < 5 then "Less than 5" else if [Band] > 4 and [Band] <11 then "5 - 10" else if [Band] > 10 then "Above 10"

 

Expected Output:

 

Less than 5       100

5 - 10                350

Above 10              0

 

Current Output:

 

Less than 5      100

5-10                 350

 

 

Is there any ways to show the range from the variable that I already created even though the dataset does not contains any data for that particular range. Thanks.


Viewing all articles
Browse latest Browse all 3363

Trending Articles