on 05-16-2014 3:23 AM
Hie Guys,
I am getting an error ("Variable qualification cannot be changed") when trying to change the qualification of a variable to dimension or detail. The formula for the variable is as follows.
Variable = If(Sum((Measure 1) + (Measure 2) )>0 )Then "Text 1" Else "Text 2"
I am trying to use the variable as a drill filter. When I use it as a column in the report, then it displays correct output.
Could anyone please help resolve the issue? Thanks.
I created detail variables for the 2 measure (Number) objects from Query 1. Then, I created my filter variable -
If(Sum(detail variable 1 + detail variable 2)> 0) Then "text 1" else "text 2". This worked for me when I used it as a drill filter. I shouldn't have to create detail variables for measure objects, but I am not sure why it didn't work earlier. Anyways, thanks for your input guys.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Jeewan,
You cannot change the qualification of the variable. (For example, you cannot change a measure to a dimension if its definition includes an aggregate.)
Create a new variable with the appropriate qualification.
Regards,
Ritika Garg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jeewan Pandey,
At Universe level, for Measure 1 and Measure 2 objects select Projection functiona as SUM.
Save and Export.
Now, In Web I create a variable
= If ([Measure 1] + [Measure 2] >0 ) Then "Text 1" Else "Text 2". // qualification is Dimension and don't take sum([Measure 1] + [Measure 2]).
Drag this in the filter bar. It will works without any error. As Web I does allow to place measure objects in drill-filter.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
At Universe level, the project for both measure objects is Sum. But, it did not work for me. There is also another data source from a different class in the Webi report, so I have merged the common dimension from both classes. However, when I use your formula using just one data source, I get the results.
Yes, the variable is a measure as well. But, you cannot use a measure as a drill filter right? Any other way to use it as a drill filter?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As you have used Sum in the formula, the variable must be a measure. The same is true for any other aggregation function too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try creating a new variable as dimension or detail rather than trying to change an existing variable. Does that work?
Noel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.