on 08-02-2012 2:01 AM
Hello,
I am using a calculated_colum action block to insert two columns "PercentUtilized" and "PercentFree" in the XML.
In Configure Object, I ahve selected document source. I have defined two columns as Double in "Defined Columns".
For PercentUtilized, I am writing following expression which is not working:
stringif( DrilldownDepth == "1", (100 * TotalTime) / (datediffminutes(#Transaction.StartDate# , #Transaction.EndDate# )) , (100 * TotalTime) / (24*60*30) )
DrilldownDepth and TotalTime both are coming from Source XML of Calculated_Column.
After execution, this action block adds two column PercentUtilized and PercentFree in the XML but its value comes as NA.
Can anyone plz help why is this not working?
Soham
Hello Soham,
Try change your expression to this:
stringif(DrilldownDepth == "1",(100 * TotalTime)/(number(datediffminutes(Transaction.StartDate,Transaction.EndDate))),(100 * TotalTime)/(24*60*30))
The value NA is probably because their start and end date are equal.
Hope this help.
Danilo Santos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
H Danilo,
I tried various permutation and combinations for tthe issue and now I have a feeling that we just can't use any Transaction or Local variable in Expression of Calculated_Column action block ..
It seems to be working that way .. I am not sure but I dont have any documentation to check that even
Can you please help in that?
Soham
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.