Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Lens] CSV export on a datatable with split metrics by doesnt generate the expected report #164055

Closed
stratoula opened this issue Aug 16, 2023 · 8 comments
Labels
enhancement New value added to drive a business result Feature:Lens impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@stratoula
Copy link
Contributor

Kibana version:
8.8+ (but can also happen in prior versions). 7.17 works as expected

Describe the bug:
When I create a Lens table with a split metrics by dimension and export the table on a csv the generated report doesn't look like the rendered table.

For example create a table like that:
image

The export leads to a csv like this:
image

while we are expecting something like:
image

@stratoula stratoula added bug Fixes for quality problems that affect the customer experience regression Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. labels Aug 16, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations)

@drewdaemon
Copy link
Contributor

drewdaemon commented Aug 16, 2023

I believe this behavior was introduced on purpose in 8.2: #128297

@stratoula
Copy link
Contributor Author

I forgot this PR tbh. I think it creates some confusion so let's explore what we can do here cc @dej611

@drewdaemon drewdaemon added enhancement New value added to drive a business result and removed bug Fixes for quality problems that affect the customer experience regression labels Aug 16, 2023
@stratoula
Copy link
Contributor Author

Closing this in favor of #164413 as it is more generic

@dej611
Copy link
Contributor

dej611 commented Jan 23, 2024

I think we can re-open this and treat it as separate enhancement than #164413 .
The reason for that is that here the changes are substantial and the impact is on the whole table: for those who rely on the export of the table here without transpose it would be a breaking change.
I had a quick go for this and can propose an alternative solution: provide 2 tables in this specific context, both in the Inspector and when downloading. One default table as it is, and an additional transpose table with the new content.

transposed_table

@dej611 dej611 reopened this Jan 23, 2024
@stratoula
Copy link
Contributor Author

Closing in favor #164413

@ikishorkumar
Copy link

ikishorkumar commented Jun 22, 2024

I think Its not solved yet i am using Kibana version : v 8.14.0

image

downloaded CSV
image

i want to download it as CSV exactly as lens table view. but its not downloading it like that how to it ?

@ikishorkumar
Copy link

I think we can re-open this and treat it as separate enhancement than #164413 . The reason for that is that here the changes are substantial and the impact is on the whole table: for those who rely on the export of the table here without transpose it would be a breaking change. I had a quick go for this and can propose an alternative solution: provide 2 tables in this specific context, both in the Inspector and when downloading. One default table as it is, and an additional transpose table with the new content.

transposed_table transposed_table

is this option now enabled i don't find it in kibana lens the select table option where do enable this from

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Lens impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

5 participants