I'm newbie in the Active forms and I tried to create format based on the cube value
but it seems I did something wrong.
So in attached picture Active form based on Sdata sample.
The idea is simple - if the value in Jan>0 i'm using format 1 else I'm using format N
So you see that I write formula in column A for first row =IF(C17>0;1;"N") and you can see that for Canada in column A puts N
but anyway it shows in yellow if it has format 1
What do you think it is necessary to do?
Active form and format based on value
-
- Regular Participant
- Posts: 221
- Joined: Sat Dec 04, 2010 2:35 pm
- OLAP Product: PAL
- Version: 2.0.9
- Excel Version: 2016
-
- 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: Active form and format based on value
What is the range definition for TM1RPTDATARNG1, TM1RPTFMTIDCOL, and TM1RPTFMTRNG?
-
- MVP
- Posts: 352
- Joined: Wed May 14, 2008 1:37 pm
- OLAP Product: TM1
- Version: 2.5 to PA
- Excel Version: Lots
- Location: Sydney
- Contact:
Re: Active form and format based on value
You need to consider the order in which Excel and TM1 are populating the cells that you are referring to during the rebuild of the active form. When the part of the processing that applies the appropriate formatting is executed, C17 is probably still waiting to be calculated.
Change your formula in A17 and replace the reference to C17 with the same formula that is in C17, but change the DBRW to DBR. i.e. =IF( DBR(<parameters>) > 0; 1; "N")
Alternatively, if all you are trying to do is base the row formatting on the values of the data within the report, then why not just use simple conditional formatting rather than going to the extra processing expense of all those DBRs? You just need to remember to apply the conditional formatting to the rows in the format area.
Change your formula in A17 and replace the reference to C17 with the same formula that is in C17, but change the DBRW to DBR. i.e. =IF( DBR(<parameters>) > 0; 1; "N")
Alternatively, if all you are trying to do is base the row formatting on the values of the data within the report, then why not just use simple conditional formatting rather than going to the extra processing expense of all those DBRs? You just need to remember to apply the conditional formatting to the rows in the format area.
Andy Key
-
- Regular Participant
- Posts: 221
- Joined: Sat Dec 04, 2010 2:35 pm
- OLAP Product: PAL
- Version: 2.0.9
- Excel Version: 2016
Re: Active form and format based on value
I did the simple thing - create an Active form and connect to one view of one Cube on Sdata server.tomok wrote:What is the range definition for TM1RPTDATARNG1, TM1RPTFMTIDCOL, and TM1RPTFMTRNG?
It put s the expression
=IF(TM1RPTELISCONSOLIDATED($B$17;$B17);IF(TM1RPTELLEV($B$17;$B17)<=3;TM1RPTELLEV($B$17;$B17);"D");"N")
in Column A - it works norvally
After it I changed this expression in A column to my one.
So you can see all formulas in the next picture.
And I don't know where I can see TM1RPTDATARNG1, TM1RPTFMTIDCOL, and TM1RPTFMTRNG
-
- Regular Participant
- Posts: 221
- Joined: Sat Dec 04, 2010 2:35 pm
- OLAP Product: PAL
- Version: 2.0.9
- Excel Version: 2016
Re: Active form and format based on value
Yes. I tried it - it didn't helpAndy Key wrote:You need to consider the order in which Excel and TM1 are populating the cells that you are referring to during the rebuild of the active form. When the part of the processing that applies the appropriate formatting is executed, C17 is probably still waiting to be calculated.
Change your formula in A17 and replace the reference to C17 with the same formula that is in C17, but change the DBRW to DBR. i.e. =IF( DBR(<parameters>) > 0; 1; "N")
-
- Regular Participant
- Posts: 221
- Joined: Sat Dec 04, 2010 2:35 pm
- OLAP Product: PAL
- Version: 2.0.9
- Excel Version: 2016
Re: Active form and format based on value
Yes, it is good idea. But I also want to learm something about Active Forms. May be it is useful thingAndy Key wrote:Alternatively, if all you are trying to do is base the row formatting on the values of the data within the report, then why not just use simple conditional formatting rather than going to the extra processing expense of all those DBRs? You just need to remember to apply the conditional formatting to the rows in the format area.
-
- Regular Participant
- Posts: 221
- Joined: Sat Dec 04, 2010 2:35 pm
- OLAP Product: PAL
- Version: 2.0.9
- Excel Version: 2016
Re: Active form and format based on value
Found this parameters ))tomok wrote:What is the range definition for TM1RPTDATARNG1, TM1RPTFMTIDCOL, and TM1RPTFMTRNG?
-
- Regular Participant
- Posts: 221
- Joined: Sat Dec 04, 2010 2:35 pm
- OLAP Product: PAL
- Version: 2.0.9
- Excel Version: 2016
Re: Active form and format based on value
EP_explorer wrote:Yes. I tried it - it didn't helpAndy Key wrote:You need to consider the order in which Excel and TM1 are populating the cells that you are referring to during the rebuild of the active form. When the part of the processing that applies the appropriate formatting is executed, C17 is probably still waiting to be calculated.
Change your formula in A17 and replace the reference to C17 with the same formula that is in C17, but change the DBRW to DBR. i.e. =IF( DBR(<parameters>) > 0; 1; "N")
You know - you were right. DBR helps (I tried DBRW).