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

[Bug] Unable to compare columns outside of pivots #24

Open
arabinelli opened this issue Mar 3, 2022 · 0 comments
Open

[Bug] Unable to compare columns outside of pivots #24

arabinelli opened this issue Mar 3, 2022 · 0 comments

Comments

@arabinelli
Copy link

Hi, I'm trying to create a % comparison for columns defined outside of the pivot field and the plug in is crashing as soon as the Measures > Comparison field is selected. This is the error I see in the developer console.

Uncaught TypeError: Cannot read properties of undefined (reading 'unit')
    at new g (report_table.js:9:87340)
    at m.createVarianceColumn (report_table.js:9:113100)
    at report_table.js:9:115600
    at Array.forEach (<anonymous>)
    at m.addVarianceColumns (report_table.js:9:115583)
    at new m (report_table.js:9:93133)
    at Object.updateAsync (report_table.js:9:171440)
    at t.<anonymous> (marketplace_viz_report_table::report_table-marketplace:33:58347)
    at marketplace_viz_report_table::report_table-marketplace:33:12803
    at Array.forEach (<anonymous>)

I'm not sure how to provide a reproducible example in Looker (apologies for that), but what I am trying to accomplish is to create a difference between two columns (e.g. col_A and col_B), where those columns can be defined as a summary of pivoted values - something along the lines of pivot_index(${col1},1) + pivot_index(${col1},3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant