hi all, I know there is a heap of information on dates, but cant seem to figure out the approach for my date in Excel cube view when no date in cell. Its the equivalent to entering a zero, giving you 1/1/1900 as the result. I cannot seem to prevent this, is there a solution here. See screenshots below
TM1excel format for dates 1/1/1900 for empty (zero) items
-
- MVP
- Posts: 2832
- Joined: Tue Feb 16, 2010 2:39 pm
- OLAP Product: TM1, Palo
- Version: Beginning of time thru 10.2
- Excel Version: 2003-2007-2010-2013
- Location: Atlanta, GA
- Contact:
Re: TM1excel format for dates 1/1/1900 for empty (zero) item
Use this formula in cell:
=IF(DBRW(Cube,Dim1,Dim2...)=0,"",DBRW(Cube,Dim1mDim2.....))
=IF(DBRW(Cube,Dim1,Dim2...)=0,"",DBRW(Cube,Dim1mDim2.....))
-
- MVP
- Posts: 3654
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: TM1excel format for dates 1/1/1900 for empty (zero) item
Actually you would be much better off just using a custom number format to hide null values as the approach of wrapping an IF statement around a DBRW means TM1 cannot optimally batch the DBRW array and it effectively becomes like a DBR. If the spreadsheet is large this could affect performance.tomok wrote:Use this formula in cell:
=IF(DBRW(Cube,Dim1,Dim2...)=0,"",DBRW(Cube,Dim1mDim2.....))
Just go to number formatting, select custom and enter "dd/mm/yyyy;;" (or mm/dd/yyyy;; for folks in North America)
This will hide all dates that evaluate to "zero" without need to change any formulas.
-
- Community Contributor
- Posts: 211
- Joined: Tue Sep 15, 2009 11:13 pm
- OLAP Product: IBMPA
- Version: PA 2.0 Cloud
- Excel Version: 2010
Re: TM1excel format for dates 1/1/1900 for empty (zero) item
seems like the formatting works in excel but is not liked in web'
GG
-
- MVP
- Posts: 3654
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: TM1excel format for dates 1/1/1900 for empty (zero) item
Didn't realise you wanted to put the worksheet on TM1 web. The support for custom number formats (especially date formats) on TM1 web leaves a lot to be desired. In a websheet I think tomok's suggestion might be the only workable solution.
However you can use custom number formatting to hide null numeric values in TM1 web cube views (or contributor) by editing the Format attribute in your measure dimension. Possibly this might be an option for you if you want to use cube views directly.
However you can use custom number formatting to hide null numeric values in TM1 web cube views (or contributor) by editing the Format attribute in your measure dimension. Possibly this might be an option for you if you want to use cube views directly.