Coder Social home page Coder Social logo

Comments (4)

BBeran avatar BBeran commented on August 15, 2024

This is not an issue with TabPy per se. Table calculations in general (which SCRIPT_ calculations are) behave this way. Totals are treated as a separate partition in table calculations.

from tabpy.

cmtoomey avatar cmtoomey commented on August 15, 2024

I think the point of this Issue was that since the data itself doesn't include "Grand Total" as an element, the new element generated by Tableau's calculation/presentation engine shouldn't impact the Python calculation by default. If Grand Totals are being displayed, there should be an Pythonic way to include/exclude their usage through some sort of argument...especially since this "feature" isn't documented anywhere.

from tabpy.

BBeran avatar BBeran commented on August 15, 2024

Hi Chris,
I think you misread my comment.

"The new element generated by Tableau's calculation/presentation engine shouldn't impact the Python calculation by default."

This is already the case. Since it is treated as a separate partition, it has no impact how Python computes the rest of the table.

The issue is that grand total itself isn't correct since it is not summing the results of preceding rows in the table. Rather grand total is being treated as a separate, independent table from the rest as is the case with other table calcs.

Thanks,

Bora

from tabpy.

zakahmad avatar zakahmad commented on August 15, 2024

Correct. The Grand Total doesn't impact how Python computes the rest of the table. But, it does impact the Python calculation as a whole since one Python calc is being used for both the top table and the bottom (grand total) table. The current implementation calls for Python to compute the grand total and it's not possible (see first comment for details on why)

Ultimately, whether this is a TabPy issue or Tableau issue, it's impractical to combine Grand Totals and TabPy calcs.

from tabpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.