![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I'm having trouble to display values for a calculated measure when i use this as my MDX: 10/100 it works fine and displays as a decimal when i try and use MDX to reference Facts in the cube: ([Measures].[Mileage]*[Measures].[Total Bookings])/ ([Measures].[Mileage]*[Measures].[Fixed Capacity]) the results are blank cells do i need to somehow convert these values they should be all integer values any ideas?? |
#2
| |||
| |||
|
|
-----Original Message----- Try setting the format string of the calulated measure to an appropriate display format. If you want to convert to integers you can use the VBA CInt() function. Also, if you facter out the mileage you can make the calculation a little easier on the server: ([Measures].[Mileage])*(([Measures].[Total Bookings])/ ([Measures].[Fixed Capacity])) Hope this helps, - Matt Carroll -- This posting is provided "AS IS" with no warranties, and confers no rights. "Jason" <jhorner (AT) flyfrontier (DOT) com> wrote in message news:006201c34759$9d4aeae0$a001280a (AT) phx (DOT) gbl... I'm having trouble to display values for a calculated measure when i use this as my MDX: 10/100 it works fine and displays as a decimal when i try and use MDX to reference Facts in the cube: ([Measures].[Mileage]*[Measures].[Total Bookings])/ ([Measures].[Mileage]*[Measures].[Fixed Capacity]) the results are blank cells do i need to somehow convert these values they should be all integer values any ideas?? . |
#3
| |||
| |||
|
|
-----Original Message----- How about using CDbl()? Not 100% of the VBA functions are supported in MDX and it looks like CDec() is one that is not. - Matt Carroll -- This posting is provided "AS IS" with no warranties, and confers no rights. "Jason" <jhorner (AT) flyfrontier (DOT) com> wrote in message news:0ac901c3480a$fb1472c0$a001280a (AT) phx (DOT) gbl... I tried using Cdec to no avail could empty cells in the set be causing this i find the behavior quite strange -----Original Message----- Try setting the format string of the calulated measure to an appropriate display format. If you want to convert to integers you can use the VBA CInt() function. Also, if you facter out the mileage you can make the calculation a little easier on the server: ([Measures].[Mileage])*(([Measures].[Total Bookings])/ ([Measures].[Fixed Capacity])) Hope this helps, - Matt Carroll -- This posting is provided "AS IS" with no warranties, and confers no rights. "Jason" <jhorner (AT) flyfrontier (DOT) com> wrote in message news:006201c34759$9d4aeae0$a001280a (AT) phx (DOT) gbl... I'm having trouble to display values for a calculated measure when i use this as my MDX: 10/100 it works fine and displays as a decimal when i try and use MDX to reference Facts in the cube: ([Measures].[Mileage]*[Measures].[Total Bookings])/ ([Measures].[Mileage]*[Measures].[Fixed Capacity]) the results are blank cells do i need to somehow convert these values they should be all integer values any ideas?? . . |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Thanks for all the help.. is there any documentation on which VBA functions are supported on the MSDN site??? -----Original Message----- How about using CDbl()? Not 100% of the VBA functions are supported in MDX and it looks like CDec() is one that is not. - Matt Carroll -- This posting is provided "AS IS" with no warranties, and confers no rights. "Jason" <jhorner (AT) flyfrontier (DOT) com> wrote in message news:0ac901c3480a$fb1472c0$a001280a (AT) phx (DOT) gbl... I tried using Cdec to no avail could empty cells in the set be causing this i find the behavior quite strange -----Original Message----- Try setting the format string of the calulated measure to an appropriate display format. If you want to convert to integers you can use the VBA CInt() function. Also, if you facter out the mileage you can make the calculation a little easier on the server: ([Measures].[Mileage])*(([Measures].[Total Bookings])/ ([Measures].[Fixed Capacity])) Hope this helps, - Matt Carroll -- This posting is provided "AS IS" with no warranties, and confers no rights. "Jason" <jhorner (AT) flyfrontier (DOT) com> wrote in message news:006201c34759$9d4aeae0$a001280a (AT) phx (DOT) gbl... I'm having trouble to display values for a calculated measure when i use this as my MDX: 10/100 it works fine and displays as a decimal when i try and use MDX to reference Facts in the cube: ([Measures].[Mileage]*[Measures].[Total Bookings])/ ([Measures].[Mileage]*[Measures].[Fixed Capacity]) the results are blank cells do i need to somehow convert these values they should be all integer values any ideas?? . . |
![]() |
| Thread Tools | |
| Display Modes | |
| |