Is the Excel IF formula blocking the write back function of DBRW?

Post Reply
LGEIS
Posts: 10
Joined: Tue Nov 16, 2021 8:16 am
OLAP Product: IBM TM1 Perspectives and PAfE
Version: several
Excel Version: several

Is the Excel IF formula blocking the write back function of DBRW?

Post by LGEIS »

I have got an Excel (I am using PAX/PAfE) cell with a DBRW formula encapsulated inside an IF statement and I want to write back data to a target cube from this cell, just by typing it into the cell manually.

When I am using the blank DBRW (=DBRW(...)) formula it works finde, but inside the IF statement ( =IF(A19=1;DBRW(...);"")) it gets overwritten by a bare value and the formula disappears.

Is there an easy workaround for this issue?
Wim Gielis
MVP
Posts: 3233
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: Is the Excel IF formula blocking the write back function of DBRW?

Post by Wim Gielis »

Try to nest the IF within the DBRW ?
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
lotsaram
MVP
Posts: 3703
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Is the Excel IF formula blocking the write back function of DBRW?

Post by lotsaram »

Your DBRW formulas need to be "clean" in order for Prespectives to recognize that the cell contains a DBRW and take over the cell onChange event.

What is the IF test doing and can it be done differently?
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
LGEIS
Posts: 10
Joined: Tue Nov 16, 2021 8:16 am
OLAP Product: IBM TM1 Perspectives and PAfE
Version: several
Excel Version: several

Re: Is the Excel IF formula blocking the write back function of DBRW?

Post by LGEIS »

I just found a duplicate: viewtopic.php?t=9239

The outline ist, that I cannot write values from a DBRW inside an Excel formula. Taking this into consideration, I had to do some workaround stuff.

My solution is quite simple:

Col1: takes the clean DBRW formula
Col2: is the reference column to a Dimension, which is filled by an IF statement

My problem was, that I had blank cells in column 2 for some conditions. I created a dummy element in the referenced dimension to avoid value error to show up in column 1.

Problem solved!
Post Reply