Popup Error Message in Excel

Post Reply
venkatcgn3
Posts: 4
Joined: Fri Aug 16, 2013 9:12 am
OLAP Product: TM1
Version: 9.5.1
Excel Version: 2007

Popup Error Message in Excel

Post by venkatcgn3 »

Hi,

user wants to input the data from excel so i am using dbs, if user enter invalid element we have to popup error message.

See below some key points and let me know your valuable suggestions,it could be very helpful if anyone sends an answer.

Regarding logic of validating the element in the dimension:
• Excel IF statement
• Check if Input is NOT equal to blank (i.e. A1 <> “”), if so, show blank
• Check if Dimension Element exists (i.e. DIMIX( DIMENSION_NAME, A1) = 0) ), if not, show string “ERROR – No Such Element”
• In addition, the “Upload” action button will further validate the data, it should pop up an error message if user enter invalid data (i.e. incorrect element name)


Thanks,
tomok
MVP
Posts: 2836
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: Popup Error Message in Excel

Post by tomok »

What kind of suggestions are you looking for? Do we think it is a good idea? I would say that it appears reasonable. However, I would put the "validaton" cell next to the cell with the DBRW formula and skip the IF idea. Use conditional formatting to indicate an error. You can use an "Upload" button but that's going to mean writing VBA. Why write VBA if you don't have to? Not to mention the form won't work in TM1Web if you use VBA.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
venkatcgn3
Posts: 4
Joined: Fri Aug 16, 2013 9:12 am
OLAP Product: TM1
Version: 9.5.1
Excel Version: 2007

Re: Popup Error Message in Excel

Post by venkatcgn3 »

tomok wrote:What kind of suggestions are you looking for? Do we think it is a good idea? I would say that it appears reasonable. However, I would put the "validaton" cell next to the cell with the DBRW formula and skip the IF idea. Use conditional formatting to indicate an error. You can use an "Upload" button but that's going to mean writing VBA. Why write VBA if you don't have to? Not to mention the form won't work in TM1Web if you use VBA.
When iam trying to write conditional formatting in formaula bar it was disabling not only conditional formatting every option disabling. I am new to tm1 as a fresher please dont angry on me.
my formula is
if(and(dimix(dimname,elename)=0),dbs(reference cell value,cube,dim's),"")here i have to show error message if user enters invalid element.
Wim Gielis
MVP
Posts: 3241
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: Popup Error Message in Excel

Post by Wim Gielis »

Hello
venkatcgn3 wrote: When iam trying to write conditional formatting in formaula bar it was disabling not only conditional formatting every option disabling. I am new to tm1 as a fresher please dont angry on me.
my formula is
if(and(dimix(dimname,elename)=0),dbs(reference cell value,cube,dim's),"")here i have to show error message if user enters invalid element.
It seems that you are also new to Excel. Conditional formatting is not in the formula bar, it's a menu option in Excel.

Put in a cell:

=dimix(dimname,elename)

and color the cell red.
Then use conditional formatting to format one or more cell based upon the value of the previous cell: color it green it the result > 0.
Best regards,

Wim Gielis

IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Post Reply