Forum Discussion
The next thing I would try is to log both parts of the calc and see if you're getting data. Then you can at least narrow it down to which part is the issue.
Return api.Data.GetDataCell("Divide(A#SALESTOT, E#DRIVER:C#Local:S#Plan:A#ISCSALDAYS:F#EndBal:O#Top:I#None:U1#None:U2#Top_UD2)")
Dim salesTot As String = api.Data.GetDataCell("A#SALESTOT").CellAmountAsText
Dim ISCSALDAYS As String = api.Data.GetDataCell("E#DRIVER:C#Local:S#Plan:A#ISCSALDAYS:F#EndBal:O#Top:I#None:U1#None:U2#Top_UD2").CellAmountAsText
api.logmessage($"Sales Tot Amount = {salesTot}
api.logmessage($"Sales Tot Amount = {ISCSALDAYS}
From there you can tweak some of the members in the script until you get data.
Hi,
I copied in your formula and added the account to a cube view. I looked at the cell status. Is that what you meant by logging it to see if it returns data?
- KarlT6 months agoContributor III
Hi Julia,
In Jon's formula the "api.logmessage" parts will write the values to the Error Log (under the System tab) - so after you open the cube view you can go to the error log and see what value is being recorded.
Once you've resolved the issues you will need to make sure you remove the log message part of the code so you don't end up with lots of unnecessary entries.
Regards
Related Content
- 4 months ago
- 7 months ago
- 8 months ago
- 12 months ago