Sub-Category of a Category?
Hi All,
We are working on a report that has a few different program_names
that are summed up in a pie chart using orig_loan_amount
.
I have been tasked with trying to sub categorize our bonds using a taxable/tax-exempt designation
The problem I am trying to overcome is that our bonds (identified by pool_name
) are actually made up of both. There is no designation on a single line.
So for example:
Loan number 157214's total loan amount was 373k+ - it was distributed into our 2024EF Bond. 40% of it is taxable and 60% is TE.
This would be pretty straight forward if I was only trying to show a breakdown of the bonds and what the taxable/TE amount was BUT those pool_names that have BOND in them get put into a program name that is bonds - and there are 3 other programs listed in our pie chart.
Essentially, I need this pie chart to show 60% tax-exempt and 40% taxable - just for the Bonds. AND I also have to show the GNMA MBS, the 'Blanks', and the FNMA/FREDDIE on the same visualization.
Is this possible?
If this helps, feel free to agree, accept or awesome it!
Best Answers
-
Hi Damen,
To accomplish this task, you only need two columns:
- Bond Category
- Amount
Using Magic ETL, perform the following steps:
- keep only the amount, name, taxable, and tax-exempt columns
- create a helper column that reads the name of each bond, and classifies it as 'bonds', 'MBS', 'Freddie', or 'other'. We will break out the 'bonds' category into taxable and non-taxable subcategories in the next step.
- unpivot the taxable and tax-exempt columns into rows. This will create two rows for all bonds with values in both taxable and non-taxable columns. One row will be the taxable portion, the other row will be the non-taxable portion. The values should be entered into a new column 'Amounts', and the two categories should be 'bonds- taxable' and 'bonds - non-taxable'.
Now that you have your dataset prepared, it should have only two columns: 'Bond Category' and 'Amount'. These are the columns that you can chart in your pie chart.
Pro tip: make sure that a pie chart is the appropriate visual you need to use for this data. Pie charts are often not recommended because it is difficult to tell the differences between the sizes of the slices. However, if your intention is to convey a general relationship, the pie chart will do just fine.
See the SWD blog on pie charts:
What is a pie chart and when to use it — storytelling with data
0 -
Unpivoting the taxable/untaxable would be helpful. The sunburst chart is helpful for breaking out a pie-chart into subcategories, with helpful default tooltips aligned to what you want:
A treemap is also nice for showing subcategories. One disadvantage of the sunuburst is the area of the sub-categories is too visually big and the rotated labels are hard to read, which the treemap fixes. In this case, it would take more work to surface the "60% of Bonds" that you want, though.
Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
0
Answers
-
Hi Damen,
To accomplish this task, you only need two columns:
- Bond Category
- Amount
Using Magic ETL, perform the following steps:
- keep only the amount, name, taxable, and tax-exempt columns
- create a helper column that reads the name of each bond, and classifies it as 'bonds', 'MBS', 'Freddie', or 'other'. We will break out the 'bonds' category into taxable and non-taxable subcategories in the next step.
- unpivot the taxable and tax-exempt columns into rows. This will create two rows for all bonds with values in both taxable and non-taxable columns. One row will be the taxable portion, the other row will be the non-taxable portion. The values should be entered into a new column 'Amounts', and the two categories should be 'bonds- taxable' and 'bonds - non-taxable'.
Now that you have your dataset prepared, it should have only two columns: 'Bond Category' and 'Amount'. These are the columns that you can chart in your pie chart.
Pro tip: make sure that a pie chart is the appropriate visual you need to use for this data. Pie charts are often not recommended because it is difficult to tell the differences between the sizes of the slices. However, if your intention is to convey a general relationship, the pie chart will do just fine.
See the SWD blog on pie charts:
What is a pie chart and when to use it — storytelling with data
0 -
Unpivoting the taxable/untaxable would be helpful. The sunburst chart is helpful for breaking out a pie-chart into subcategories, with helpful default tooltips aligned to what you want:
A treemap is also nice for showing subcategories. One disadvantage of the sunuburst is the area of the sub-categories is too visually big and the rotated labels are hard to read, which the treemap fixes. In this case, it would take more work to surface the "60% of Bonds" that you want, though.
Please 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 737 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive