cancel
Showing results for 
Search instead for 
Did you mean: 

inputcontrol value in webi

Former Member
0 Kudos

Hi,

We have 2 tables in webi report. Table 1 is with objects Region, measure1, measure2; Table 2 is with objects Category, measure1, measure2.

We have 2 input controls region and Category. Above two tables have dependencies on these two tables.

We have below scenario:

When user select any value from Region input control (other than 'All values') then measure2 display zero in table2. And

When user select any value from Category input control (other than 'All values') then measure2 display zero in table1.

Appreciate your help,

Regards,

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

is it a real time requirement or your experiment?

Got Solution? Pls Update.

Former Member
0 Kudos

Yes, It was real requirement when we don't have data for all measures for all categories.

Anyway it was not solved. And now we have data for all categories so we don't have this requirement now.. 🙂

Thank you for all your support as I achieved some results with your suggestions.. 🙂

Former Member
0 Kudos

Thanks for the Update

Former Member
0 Kudos

Hi Prem,

Update the discussion if you got the answer.

Thanks.

Former Member
0 Kudos

Hi Parthibhan,

Still no luck..

When we select 'All values' in Category then below are the results

Count1Count2Measure2Measure2
Region133Condition True so it will display measure2
Region211Condition True so it will display measure2
Region333Condition True so it will display measure2

When we select 'Cat1' in Category then below are the results

Count1Count2Measure2Measure2
Region113Condition True so it will display measure2
Region211Condition True so it will display measure2
Region313Condition True so it will display measure2

When we select 'Cat2' in Category then below are the results

Count1Count2Measure2Measure2
Region113Condition True so it will display measure2
Region2Condition True so it will display measure2
Region313Condition True so it will display measure2

I am expecting measure2 should be 0 if we select any category using Category input control (combo box)

Thanks again,

Regards,

Prem

Former Member
0 Kudos

Hi Prem

1. Are you getting 'Measure2' values when 'Cat2' is selected?

2. Kindly provide more information on your requirement. Why 'Measure2' should be 0 when any one of the category is selected?

Think, its not possible to achieve the requirement due to the input control behaviour of having all the categories irrespective of Region, but I will try.

Thanks.

Former Member
0 Kudos

Hi Prem,

Please update the discussion if the above solution works for you.

Thanks.

Former Member
0 Kudos

Hi Prathibhan,

Thanks again for your reply. Still i am not achieving expected result with above formulas:

We have the below data for Region and Category:

RegionCategory
Region1Cat1

Cat2

Cat3
Region2Cat1
Region3Cat1

Cat2

Cat3

so if we use Category input control and select Cat1 then count will display as below:


Count([Category])Nofilter(Count([Category]))
Region113
Region211
Region313

If we select Cat2 then counts are as below


Count([Category])Nofilter(Count([Category]))
Region113
Region2
1
Region313

if you do not select any Category then counts are as below:

Count([Category])Nofilter(Count([Category]))
Region133
Region211
Region333

I need the below result (Measure2 is Zero) if you select any category:

RegionMeasure1Measure2
Region110
Region220

Thanks again for your time..

Regards,

Prem

Former Member
0 Kudos

Hi Prem,

What i understand from your reply is, if Cat1 is selected, then Region2 is showing the Measure2 instead you are expecting 0. You are expecting Region2 should display Measure2 if All values is selected in the input control. Am i right?

Kindly note, Region2 has only one category Cat1, hence, selecting Cat1 or All values gives same sense. So, you can use the formula. If you expect 0 , then please explain more on your Scenario.

Thanks,

Parthiban

Former Member
0 Kudos

Hi Prathibhan,

Now we both are on same page. 🙂

Region2 has one category Cat1 only.. But Category input control will display all three Categories (Cat1, Cat2, Cat3).

So Measure2 display 0 for all regions if we select any category (other than 'All values).

Hope i explained issue clearly now..

Thank you and Regards,

Prem

Former Member
0 Kudos

Hi Prem

Kindly try the below formula:

=If(Count([Category])<>1 Or Count([Category])in([Region])=1) Then([Measure2]) Else(0)

Update the discussion if it works.

Thanks,

Parthiban

Former Member
0 Kudos

Hi Parthiban,

Thank you again for your reply. It is not displaying correct result:

When we select 'All values' in Category then below are the results


CountCount in RegionMeasure2
Region133Condition True so it will display measure2
Region211Condition True so it will display measure2
Region333Condition True so it will display measure2

When we select 'Cat1' in Category then below are the results


CountCount in Region
Region111Condition True so it will display measure2
Region211Condition True so it will display measure2
Region311Condition True so it will display measure2

When we select 'Cat2' in Category then below are the results


CountCount in Region
Region111Condition True so it will display measure2
Region2

Condition True so it will display measure2
Region311Condition True so it will display measure2

As I mentioned I am expecting measure2 should be 0 if we select any category using Category input control (combo box)

Please help me any other work around.

Thank you in advance for your time,

Cheers,

Prem.

Former Member
0 Kudos

Hi Prem

Please try this modified formula:

=If(Count([Category])<>1 Or NoFilter(Count([Category]);All)in([Region])=1) Then([Measure2]) Else(0)

I can't able to produce the same scenario. hence, above formula is just a guess. Try this and update.

Thanks,

Parthiban

Message was edited by: Parthiban Ganesh

Former Member
0 Kudos

Hi Prem

Use the below formulas:

=if(Count([Region])<>1) Then([Measure2]) Else(0)

=if(Count([Category])<>1) Then([Measure2]) Else(0)

PFB Screenshots:

Please note: Last Column of Second table has Count([Quarter]), please dont consider the Name of that column. PFB Screenshot:

Hope it helps!!!

THanks,

Parthiban

Message was edited by: Parthiban Ganesh

Former Member
0 Kudos

Hi Prathibhan,

Thank you for your reply.

Above formula will work if we have more than 1 Category per Region. But in one scenario we have 1 category only per 1 region. So it is always false with below formula and displaying Zero for that Region.

=if(Count([Category])<>1) Then([Measure2]) Else(0)

Can you please suggest?

Thanks again,

Former Member
0 Kudos

Hi Prem

Use the below formula:

=If(Count([Category])<>1 Or NoFilter(Count([Category]);All)=1) Then([Measure2]) Else(0)

PFB Screenshots:

The above formula will display [Measure2], if [Category] has only single value as LOV or All values is selected in the input control. Kindly check and confirm.

Thanks,

Parthiban