Abdulrehman-PIAIC80387 commented on issue #42809:
URL: https://github.com/apache/superset/issues/42809#issuecomment-5237309198

   Sending PR #42976 for the server-side half of this issue. Adds a 
`show_values_as` argument to `pivot()` in 
`superset/utils/pandas_postprocessing/pivot.py` that mirrors the client-side 
`fractionOf` semantic (including #42810's NaN/zero-denominator guards). 
Multi-metric pivots are handled per-metric so metric A's percentages are never 
contaminated by metric B's values.
   
   The second half — wiring the pivot chart's `buildQuery.ts` to emit the 
postprocessing so CSV/XLSX exports pick it up — is a follow-up because it needs 
a design decision on whether to emit the operation always (client must tolerate 
a pre-pivoted DataFrame) or only for `result_type in {CSV, XLSX}`. Happy to 
fold that into the same PR if you have a preferred shape @rusackas / 
@sadpandajoe — asked in the PR body.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to