Skip to main content
Employee - Guide
May 18, 2022 1:52 PM UTC
Solved

XFCell Calculation

Dear community,

 

I am trying to calculate 2 values directly in my XF Document.

There is a part in the online documentation that is saying :

Include Member Scripts in XFCells in order to retrieve data for specific Dimension Members.  Culture User is based on the computer’s Windows settings and the User settings.
XFCell(Memberscript, Culture=User, NumberFormat=N3,DisplayNoDataAsZero=True, Scale=3, FlipSign=True, ShowPercentageSign=False)

 Unfortunalety it does not give much details as to what the "memberscript" should be ...

So far, I have 2 parameters build up with XFCell, that are giving me the right values. But Now that I simply need to calculate the ratio between those value, and get this ratio back in the word document, I'm a little bit stuck ...

 

Regards,

ChristianW
Employee - Advisor
May 18, 2022 3:50 PM UTC

Hi Sergey

Memberscript is just another word for POV.

If you want to run a calculation, you have to use a business rule within the XFCell call.

BR#[YourBrName, FunctionName=Sum, PoV1=Value1, PoV2=Value2]

Cheers

Christian

5 replies

ChristianW
Employee - Advisor
Employee - Advisor
May 18, 2022 3:50 PM UTC

Hi Sergey

Memberscript is just another word for POV.

If you want to run a calculation, you have to use a business rule within the XFCell call.

BR#[YourBrName, FunctionName=Sum, PoV1=Value1, PoV2=Value2]

Cheers

Christian

SergeyEmployee - GuideAuthor
Employee - Guide
May 19, 2022 7:53 AM UTC

Thanks Christian,

Indeed only the Business Rule was able to serve this need 🙂 But it really works like a charm in the XF Word document !

Regards,

Oct 11, 2022 9:09 PM UTC

Returning back to this topic can I get an example of using this expression to retrieve some type of data not really using calculations on an extendable doc? 

Newcomer
Nov 17, 2023 3:06 PM UTC

Hello,

I have just discovered the power in a quickview of the GetDataCell, as an example I Use : 

GetDataCell((T#2024:S#BUDGET_V3 - T#2023:S#Planning_2023M10) / T#2023:S#Planning_2023M10*1000):Name(Variance)

To obtain a variance.

But in my Quickview I need to have both data with the Comma [0] (my default param) and with percent.

I use the formula for example :

GetDataCell(VariancePercent(T#2024:S#BUDGET_V3,T#2023:S#Planning_2023M10)):Name(Var%)

Is it possible to have the % sign? I found this from the cubeview but don't know the correct syntax :

ReportNoDataNumberFormat = [#,###,0.00;(#,###,0.00);0.00], ShowPercentSign = True

 

Thank you.

Newcomer
Nov 17, 2023 3:13 PM UTC

Also how to add blank lines or columns? I sax the |Space| variable but don't know if it works.