Pivot card
Hi,
I would like to know about Pivot card.
I prepared the table below.
The four fruits of "Product" have a value in Jan, but only grapes does not have a value in February.
I visualized this data on a Pivot Table card by analyzer.
Is it possible to put the name in product in order as I like?
If I visualize only February on pivot card, Grape will disappear from the Product column. Is it possible to display Grape as it is without disappearing even if only February is displayed?
Thank you.
Comments
-
Hi @eriena, just in case you haven't already, you can learn more about pivot table cards here: https://domohelp.domo.com/hc/en-us/articles/360043429473-Pivot-Table.
On ordering the product names, the default option is alphabetical order but using the other arrowheads across your columns, you can sort in any order you like.
As for having empty records show, try this chart property option and see if it displays all products when February is selected.
10 -
@eriena You could create a beast mode so calculate the sum of pcs for each product to make sure that every product is visible in the table.
For example you can create a Beast Mode called "Apple":
sum(case when `Product` = 'apple' then `pcs` else 0 end)
And this Beast Mode called "Grapes":
sum(case when `Product` = 'grape' then `pcs` else 0 end)
That way, even if there is no data for grapes in February it will still show 0.
2 -
Hello @amehdad , @MichelleH,
Thank you for your advice and the information.
I could solve my question. I appreciated for your answers.
(I think I should have select new post as "ask a question" but I think I selected "new topics", so I couldn't find "accept" button to your advice. I 'm sorry for that.)
1 -
Hi, @amehdad , @MichelleH
Please let me ask additional question.
I set chart property option as "fill empty data cells with 0" on my chart.
I could let show "0" when it is null.
But when I filter only Feb 2021, grape disappear from chart.
Do we have any method to show grape on the chart when even it filtered?
0 -
Hi @eriena
You'd need to generate Grape rows with 0 as the number of pieces for each date. To do this you'd need to do a cartesian join between your dates and your products. This can cause a massive increase in the number of records you have in your dataset so be mindful it will increase the dataflow execution time as well.
First, select just the product names / identifiers, feed that into a remove duplicate, then put that into an Add Constant tile to add a new column called "Join Column" with a value of 1.
Next you could either pull in the Date Dimension from the Domo Dimensions connector to get a list of all date then filter to be greater or equal to your lowest date and less than the current date (reduces dataset size). OR you could select all your distinct dates from your dataset like the previous step (the caveat to this is that if you don't have a date in your dataset it won't put a grape record for that date). If you don't need the data on a daily method then I'd recommend grouping your data by month and using the month to join on instead of the date. Feed that into an Add Constant tile and add a new join column called "Join Column" with a value of 1.
Join the two datasets together. This will list all products and all dates. Do a left join with this as your left table and your original dataset as the right table. Then you can use a formula tile and use the COALESCE function to default the value to 0. Finally output this all to an output dataset.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**2 -
Thank you for your advice.
Oh, I should have modified the dataset prior to creating card.
I understood, I will try modified my dataset first.
I am appreciated your advice, thank you so much☺️
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 754 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive