cancel
Showing results for 
Search instead for 
Did you mean: 

Values differ for a measure when used with Case statement

Former Member
0 Kudos

Hi All,

In IDT, when I run a measure against a dimension, it returns me a value in ##,###.## format. Eg. (12,345.99). However the same measure when used with Case statement it returns me complete number i.e 12346. This happens for all dimension values which affect total.

Please see below resultset for better idea. Can somebody tell me if there is a way to get values in fractions through Case statement?

IDMeasurecase Measure
A123-223127-223127
A1245405.935406
A1255082.255082
A126180305.9180306
A127-1348-1348
A128-576.31-576
A129121708.9121709
A13069.7170
A131224224
A132317.97318
A13347293884729388
A1344994.884995
A1355501.995502
A13682657.4282657
A13768697.3968697
A13846039.0946039
A1396.436
A140-300996-300996
A14118582.2118582
A1421234.81235
A14315789681578968
A1446744.486744
A1455228.545229
A146883.4883
A147116676.3116676
A148151277.8151278
A149-118665-118665
A1503875.033875
A15139238.139238
A15215842.7115843
A153-204.19-204
A15449248.749249
A1553232.113232
A156-384.12-384
A157-43.99-44
A15830605.8930606
A159294.84295
A1605687.535688
A16120973.520974
A16210334.210334
A163-166.8-167
A1642259.552260
A16516809.0316809
A16634321.1734321
A167245468.2245468
A16810590.8310591
A16955935.5755936
A170126.89127
A17143055.6443056
A17239266.2739266
A173-47930.3-47930
A174-469.53-470
A175-122.7-123
A17637156.637157
A17731412.2331412
A178-143.31-143
A17940639.0840639
A1806722.546723
A18195034.8695035
A182-425.41-425
A183515446.9515447
A18416392491639249
A1857461.857462
A1867037.577038
A187122439.7122440
A18838389193838919
A189-8025.3-8025
A190-17038.9-17039
A19162809.7562810
A19214158.9514159
A1938.739
A1944923.144923
A195988.73989
A19620857.1420857
A197-807.69-808
A19867033.8667034
A19927701432770143
A200-137.48-137
A201410797.6410798
A2028445.878446
A203175871.6175872
A20451368.8551369
A205-113850-113850
A206-38148.7-38149
A20775029197502919
A208-15859.3-15859
A20950388.0550388
A21000
A21123137.9223138
A212104427.6104428
A2132255.542256
A21419439.7319440
A2151338610313386103
A216987.48987
A217-588.51-589
A218150401.8150402
A219-169.64-170
A22010864.8410865
A22114358.7514359
A222145011145011
A2231195446311954463
A22431064.9631065
A2251053.981054
A226-2259.82-2260
A227-112438-112438
A228-49173-49173
A229-796.54-797
A230-24293.7-24294
A23166733.9666734
A23217950.117950
A233-0.010
A234-3095.11-3095
A235260273.1260273
A236-18.29-18
A237294531.6294532
A238-3758.96-3759
A23924328.0624328
A2402171.892172
A241919590.4919590
A24272890.7472891
A24364774.8464775
A244-108.5-109
A24573814577381457
A24623011652301165
A247111484.6111485
A248709571.3709571
A24900
A25072200.0772200
A25119832.9719833
A25228161.9628162
A253-57490-57490
A25499.81100
A25574858.9174859
A25610033.6410034
A257-45.43-45
A25800
A25973785.573786
A260-732.46-732
A261136341.9136342
A262432737.5432737
A263-280.79-281
Total :-6301422163014227

As you can see there is difference of 6 in total.

Regards,

Tejas

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Try this at webi Level

Use If Else Condition for case Requirement

tonumber(FormatNumber([Measure];"####.##"))

and then select the Cell >> format number and add a Custom format 0.00 Or ypu can use Other one which are available.

Hope this will help

former_member225163
Active Participant
0 Kudos

Hi,

Pls try abs() function or any date formatting function to get ##,###.## (specific to the databse) on top the Case statement and test. I tried to reproduce the same. .but, could not. So, this is just a try.

Thanks,

Bala

former_member189638
Active Contributor
0 Kudos

Did you try defining the Custom Format for the Case Measure Object in the IDT??

Former Member
0 Kudos

I did but that did not help.

With one or two values, there is no issue. Rounding up almost 141 values leads to make a difference of 6 as showing in my first post.