![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi There, I have used the SELECT NON EMPTY ON ROWS or COLUMNS, but this only suppress empty rows or columns. Zeroes rows or columns are still returned. Is there a MDX function to exclude rows or columns if it has all zeroes? Thanks, Dao. |
#3
| |||
| |||
|
|
-----Original Message----- Not exactly. However you can use the Filter function to filter a set, like this foodmart example... Filter( [Store Name].Members, [Store Sales] <>0 ) tom @ the domain below www.tomchester.net "Dao Tring" <dao.trinh (AT) solution6 (DOT) com> wrote in message news:26e4a01c38ecf$6cf86b20$a601280a (AT) phx (DOT) gbl... Hi There, I have used the SELECT NON EMPTY ON ROWS or COLUMNS, but this only suppress empty rows or columns. Zeroes rows or columns are still returned. Is there a MDX function to exclude rows or columns if it has all zeroes? Thanks, Dao. . |
#4
| |||
| |||
|
|
Hi There, I have used the SELECT NON EMPTY ON ROWS or COLUMNS, but this only suppress empty rows or columns. Zeroes rows or columns are still returned. Is there a MDX function to exclude rows or columns if it has all zeroes? |
#5
| |||
| |||
|
|
-----Original Message----- "Dao Tring" <dao.trinh (AT) solution6 (DOT) com> wrote in message news:26e4a01c38ecf$6cf86b20$a601280a (AT) phx (DOT) gbl... Hi There, I have used the SELECT NON EMPTY ON ROWS or COLUMNS, but this only suppress empty rows or columns. Zeroes rows or columns are still returned. Is there a MDX function to exclude rows or columns if it has all zeroes? One technique is to put calculated cell over entire cube which converts zeros to NULLs, i.e. WITH CELL CALULATION ZerosToNULL FOR '(Measures.ALLMEMBERS)' AS 'IIF(Measures.CurrentMember.Value = 0, NULL, CalculationPassValue(Measures.CurrentMember, -1, RELATIVE)' SELECT NON EMPTY ... -- ================================================== Mosha Pasumansky - www.mosha.com/msolap Development Lead in the Analysis Server team All you need is love (John Lennon) Disclaimer : This posting is provided "AS IS" with no warranties, and confers no rights. ================================================== . |
#6
| |||
| |||
|
|
Hi Mosha, Thanks for your help but I have problem execute the MDX |
#7
| |||
| |||
|
|
-----Original Message----- "Dao Trinh" <dao.trinh (AT) solution6 (DOT) com> wrote in message news:087801c38ed9$689f65b0$a401280a (AT) phx (DOT) gbl... Hi Mosha, Thanks for your help but I have problem execute the MDX I think I forgot to close one parethesis - here is the updated version WITH CELL CALULATION ZerosToNULL FOR '(Measures.ALLMEMBERS)' AS 'IIF(Measures.CurrentMember.Value = 0, NULL, CalculationPassValue(Measures.CurrentMember, -1, RELATIVE))' -- ================================================== Mosha Pasumansky - www.mosha.com/msolap Development Lead in the Analysis Server team All you need is love (John Lennon) Disclaimer : This posting is provided "AS IS" with no warranties, and confers no rights. ================================================== . |
#8
| |||
| |||
|
|
Hi Mosha, It still complains about the Value, ie. Measures.CurrentMember.^Value^ is an inavalid token. If I remove the value I can execute the MDX, but it returns #ERR |
#9
| |||
| |||
|
|
-----Original Message----- "Dao Trinh" <dao.trinh (AT) solution6 (DOT) com> wrote in message news:0a7401c38edc$649ff620$a101280a (AT) phx (DOT) gbl... Hi Mosha, It still complains about the Value, ie. Measures.CurrentMember.^Value^ is an inavalid token. If I remove the value I can execute the MDX, but it returns #ERR OK - here is the one that worked for me WITH CELL CALCULATION ZerosToNULL FOR '(Measures.ALLMEMBERS)' AS 'IIF(CalculationPassValue(Measures.CurrentMember, -1, RELATIVE) = 0, NULL, CalculationPassValue(Measures.CurrentMember, -1, RELATIVE))' -- ================================================== Mosha Pasumansky - www.mosha.com/msolap Development Lead in the Analysis Server team All you need is love (John Lennon) Disclaimer : This posting is provided "AS IS" with no warranties, and confers no rights. ================================================== . |
![]() |
| Thread Tools | |
| Display Modes | |
| |