Pivot Table With No 'Rows' Does Not Render #44500
Labels
.Frontend
Priority:P2
Average run of the mill bug
.Team/DashViz
Dashboard and Viz team
Type:Bug
Product defects
Visualization/Tables
Raw, summarized, and pivoted tables
Describe the bug
Moving all fields out of Rows and into Columns (leaving the Measures alone) results in no table being rendered.
![image](https://private-user-images.githubusercontent.com/21064735/341541360-751deb36-4fc3-4a71-ace8-679316ad6ce7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk1OTQ0NTEsIm5iZiI6MTcxOTU5NDE1MSwicGF0aCI6Ii8yMTA2NDczNS8zNDE1NDEzNjAtNzUxZGViMzYtNGZjMy00YTcxLWFjZTgtNjc5MzE2YWQ2Y2U3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI4VDE3MDIzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWViMDUwOGJhYjQ3ZjFhMGYzZDhhYmEzODMzOTU2ZDFjNWI1ZTFhZjBiNDY2MWFiZDYzODU4ZGVlNjllNTJkNmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.sRbIrOOGkBh5lneG0Eh4J7X81i5fdrXdFj1BT_plT_g)
To Reproduce
Expected behavior
The Table should render, as it does when you have all of the fields in Rows and none in Columns.
![image](https://private-user-images.githubusercontent.com/21064735/341540918-ad14d4f4-e493-4beb-bbd6-82d0742b3d6b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk1OTQ0NTEsIm5iZiI6MTcxOTU5NDE1MSwicGF0aCI6Ii8yMTA2NDczNS8zNDE1NDA5MTgtYWQxNGQ0ZjQtZTQ5My00YmViLWJiZDYtODJkMDc0MmIzZDZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI4VDE3MDIzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ5ZmEyZTQ1ZjIzYjRhYmIyZTJhY2RkNmIyMjcxNTMzZGVjODU1MWEyNTMyZDA2MWVjZjBiMDgzNWViYmU5NjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.YNOevcnyACv_ZXSp-mmIjxQz1V2Q_hyS7KhIO9CZVsk)
eg:
Or, it should present a warning explaining why it will not render (perhaps this is somewhat expected behaviour, as the table could become very large horizontally in such a configuration).
Logs
No response
Information about your Metabase installation
Latest from Master (after v50), though it's highly likely this exists in many versions back.
Severity
P2
Additional context
No response
The text was updated successfully, but these errors were encountered: