Create a calculated field called Total Annual Income

○ This field represents the addition of the Annual Income variable and the Annual
Income Joint variable.
■ Note 1: Technically the Annual Income Joint field already contains the
Annual Income, but as an educational exercise, we are just pretending
that you need to add the two together to get the Total Annual Income.
■ Note 2: Also be careful and check your data types for these two fields.
Both fields should be a decimal data type.
○ If your Annual Income Joint variable is a numerical data type, you will notice
that it has null values. Important: review this Tableau article, especially the ZN
option, for working with null values or your calculation might not work as
expected.

To create a calculated field called Total Annual Income in Tableau, follow these steps:

1. Open your Tableau project and navigate to the worksheet where you want to create the calculated field.

2. Right-click on any blank space in the Dimensions/Measures pane on the left, and select "Create Calculated Field" from the context menu.

3. In the Calculation dialog box, enter a name for the calculated field such as "Total Annual Income".

4. Enter the calculation formula that adds the Annual Income variable and the Annual Income Joint variable. The formula should look like this: `[Annual Income] + [Annual Income Joint]`.

5. Check the data types of the Annual Income and Annual Income Joint fields to ensure they are both decimal data types. If not, you may need to convert them using Tableau's data conversion functions.

6. If the Annual Income Joint variable has null values, you can handle them using the ZN function. Modify your calculation formula as follows: `ZN([Annual Income])+ZN([Annual Income Joint])`. The ZN function replaces null values with zeros, allowing the addition to work properly.

7. Click the "OK" button to create the calculated field.

Now, you should see the Total Annual Income calculated field in your Dimensions/Measures pane. You can use this field in your visualizations and analysis as desired.

Why are we not using sum of annual income?

We are not using the SUM aggregation function with the Annual Income variable because it is assumed that the Annual Income and Annual Income Joint variables are already at a granular level and represent individual amounts of income. In other words, if you add them together, you are getting the total of the individual incomes, not the sum of the variable itself.

For example, if you have two rows of data with Annual Income values of $50,000 and $60,000, and the Annual Income Joint variable represents the combined income of a couple, the Total Annual Income would be $110,000 (not the sum of $50,000 and $60,000, which would be $110,000 as well).

Essentially, the Total Annual Income calculated field is combining the individual incomes represented by the Annual Income and Annual Income Joint variables to get the total combined income.

Create a calculated field called DTI

○ This field represents the debt-to-income ratio. You will calculate it by taking the
Total Debt variable and dividing it by Total Annual Income calculated in the
previous step. We want a percentage, so in the calculated field, multiply your
answer by 100 and round to 2 decimal places

To create a calculated field called DTI (Debt-To-Income Ratio) in Tableau, follow these steps:

1. Make sure you have already created the Total Annual Income calculated field as described in the previous response.

2. Open your Tableau project and navigate to the worksheet where you want to create the calculated field.

3. Right-click on any blank space in the Dimensions/Measures pane on the left, and select "Create Calculated Field" from the context menu.

4. In the Calculation dialog box, enter a name for the calculated field like "DTI".

5. Enter the calculation formula that calculates the debt-to-income ratio. The formula should be: `ROUND(([Total Debt] / [Total Annual Income]) * 100, 2)`. This formula divides the Total Debt variable by the Total Annual Income variable and then multiplies the result by 100 for the percentage representation. The ROUND function is used to round the result to two decimal places.

6. Click the "OK" button to create the calculated field.

Now, you should see the DTI calculated field in your Dimensions/Measures pane. You can use this field in your visualizations and analysis to represent the debt-to-income ratio for your data.

Build a distribution plot (histogram) for Total Annual Income

○ Change bin size to 25,000
○ The x-axis tick-mark interval should be 25,000
○ Change the title to Total Annual Income Distribution: <Student Name>

To build a distribution plot (histogram) for the Total Annual Income in Tableau with the specified settings, follow these steps:

1. Drag the Total Annual Income field to the Rows shelf.

2. On the Marks card, ensure that the Mark type is set to Bar.

3. Right-click on the Total Annual Income axis and select "Edit Axis" from the context menu.

4. In the Edit Axis dialog box, go to the "Ticks" tab.

5. Set the "Major" tick mark type to Fixed and enter 25000 in the "By" field. This will set the x-axis tick mark interval to 25,000.

6. Click the "OK" button to apply the changes.

7. Right-click on the Total Annual Income field on the Rows shelf and select "Add to Shelf" > "Bins".

8. In the Bins dialog box, set the bin size to 25,000.

9. Click the "OK" button to create the bins.

10. To change the title of the visualization, click on the default title above the plot area.

11. In the title text box, enter "Total Annual Income Distribution: <Student Name>". Replace "<Student Name>" with your actual name.

12. Press Enter or click outside the title text box to apply the changes.

Now, you should see a distribution plot (histogram) of the Total Annual Income with a bin size of 25,000 and x-axis tick marks at every 25,000 interval. The title of the visualization should display "Total Annual Income Distribution: <Student Name>". Adjust the visualization settings or formatting as desired.

why is the histogram a single bar

If the histogram for the Total Annual Income is displaying as a single bar, it is likely because all the values in your data fall within a single bin. A histogram is a graphical representation of the distribution of a continuous variable, where the variable values are divided into intervals or bins. Each bar in the histogram represents the count or frequency of the variable values falling within that specific bin.

To address this issue and ensure that the histogram displays the desired distribution, you can take the following steps:

1. Verify that the Total Annual Income field is of the correct data type. It should be a decimal or numeric data type to accurately represent income values.

2. Check the data range of the Total Annual Income field. If all the values are already within a single bin, you may need to adjust the bin size to better capture the distribution. Decrease the bin size to create more bins and capture the variability in income values.

3. Right-click on the Total Annual Income field on the Rows shelf and select "Edit" to modify the bin settings. Reduce the bin size, for example, to 10,000 or even smaller increments, depending on the range of your data.

4. Apply the bin size changes and observe the histogram. It should now display multiple bars, each representing the count or frequency of values falling within their respective bin.

By adjusting the bin size to better fit the range and variability of your income data, you should be able to create a histogram that accurately represents the distribution of Total Annual Income.

whats the x-axis label

The x-axis label for the histogram representing the Total Annual Income will typically be "Total Annual Income" or a similar description that indicates the variable being represented. This label is used to identify the variable and provide context for the data being plotted. It helps viewers understand what the histogram represents and interpret the distribution of the Total Annual Income values.

how to edit a bin axis

To edit a bin axis in Tableau, follow these steps:

1. Select the axis you want to edit. In this case, it would be the axis representing the bins.

2. Right-click on the axis and select "Edit Axis" from the context menu.

3. In the Edit Axis dialog box, you can make various changes to the bin axis:

- Adjust the title: In the Title tab, modify the title text and formatting as desired.

- Modify the tick marks: In the Tick Marks tab, set the desired tick mark type such as None, Inside, Outside, or Cross. You can also customize the tick mark labels and spacing.

- Change the range and values displayed: In the Range tab, you can set custom minimum and maximum values for the axis or use the Automatic option. You can also specify the number of tick marks or select the Fixed option to manually set the tick mark values.

- Customize the axis labels: In the Labels tab, you can modify the appearance and formatting of the axis labels, such as the font, size, and rotation. You can also choose to show or hide the axis labels.

- Adjust other settings: Depending on your specific needs, you might have additional tabs, such as Grid Lines or Synchronization, where you can make further adjustments.

4. Once you have made the desired changes, click the "OK" button to apply the edits to the bin axis.

By following these steps and modifying the appropriate settings in the Edit Axis dialog box, you can edit and customize a bin axis in Tableau according to your specific requirements.

am clicking on x axis bit not showing edit option

Apologies for any confusion. In Tableau, the Edit Axis option is not available directly from right-clicking on the x-axis of a histogram. To edit the bin axis, you need to follow these steps instead:

1. Click on the axis to select it. It should become highlighted or have handles appear to indicate it is selected.

2. In the top navigation menu, click on "Axis" to open a dropdown menu.

3. From the dropdown menu, select "Edit Axis" to open the Edit Axis dialog box.

4. Now, you can follow the steps provided in the previous response to modify the various settings of the bin axis, such as title, tick marks, range, labels, and other options.

Please note that the options you see in the Edit Axis dialog box may vary depending on the specific chart type or the version of Tableau you are using. But generally, you should be able to find the necessary options to customize the bin axis.

I hope this clarifies the process of editing a bin axis in Tableau for your histogram visualization.

Create a calculated field called DTI Level

○ If the DTI is less than or equal to 35, then call it Low
○ If the DTI is greater than 35 and less than 50, then call it Medium
○ If the DTI is greater than or equal to 50, then call it High

To create a calculated field called DTI Level in Tableau with the specified conditions, follow these steps:

1. Open your Tableau project and go to the worksheet where you want to create the calculated field.

2. Right-click on any blank space in the Dimensions/Measures pane on the left, and select "Create Calculated Field" from the context menu.

3. In the Calculation dialog box, enter a name for the calculated field as "DTI Level".

4. Enter the calculation formula that assigns the appropriate DTI level based on the conditions. The formula should look like this:

```
IF [DTI] <= 35 THEN "Low"
ELSEIF [DTI] > 35 AND [DTI] < 50 THEN "Medium"
ELSE "High"
END
```

This formula uses the IF-ELSEIF-ELSE logic to evaluate the value of the DTI field and assign the corresponding level based on the specified conditions.

5. Click the "OK" button to create the calculated field.

Now, you should see the DTI Level calculated field in your Dimensions/Measures pane. You can use this field in your visualizations and analysis to categorize the DTI values into Low, Medium, or High based on the calculated levels.

Using the DTI Level calculated field that you created above, create a text table that shows the

counts of each range.
7. Build a text table that lists each DTI Level along with the respective counts.
○ Sort the text table rows in this order: Low, Medium, High
○ Change the title of the graph to DTI Text Table: <Student Name>

To create a text table that displays the counts of each DTI Level category, sorted in the specified order, and with a customized title, follow these steps:

1. Drag the DTI Level calculated field to the Rows shelf.

2. Drag the DTI Level field again to the Text Marks card. By default, Tableau will display a count of the number of records for each DTI Level category.

3. Right-click on the DTI Level field on the Rows shelf and select "Sort" > "Sort Ascending" from the context menu. This will sort the DTI Levels in the desired order: Low, Medium, High.

4. To change the title of the text table, click on the default title above the table.

5. In the title text box, enter "DTI Text Table: <Student Name>". Replace "<Student Name>" with your actual name.

6. Press Enter or click outside the title text box to apply the changes.

Now, you should see a text table that lists each DTI Level along with the counts of each category, sorted in the order specified. The title of the text table should display "DTI Text Table: <Student Name>". You can adjust the formatting or add additional fields to the table as desired.

a box infront of the categories

To add a checkbox in front of each category in the text table, you can make use of the "Show Header" feature in Tableau. Here's how you can do it:

1. Drag the DTI Level field to the Columns shelf.

2. Right-click on the DTI Level field on the Columns shelf and uncheck the "Show Header" option. This will hide the header of the DTI Level field.

3. Drag the DTI Level field again to the Rows shelf. Now, you will have the checkboxes displayed in front of each category.

4. Drag the DTI Level field to the Text Marks card. By default, Tableau will display a count of the number of records for each DTI Level category.

5. Right-click on the DTI Level field on the Rows shelf and select "Sort" > "Sort Ascending" from the context menu. This will sort the DTI Levels in the desired order: Low, Medium, High.

6. To change the title of the text table, click on the default title above the table.

7. In the title text box, enter "DTI Text Table: <Student Name>". Replace "<Student Name>" with your actual name.

8. Press Enter or click outside the title text box to apply the changes.

Now, you should see a text table with checkboxes displayed in front of each DTI Level category, along with the counts of each category. The title of the text table should display "DTI Text Table: <Student Name>". You can adjust the formatting or add additional fields to the table as desired.

To add a checkbox in front of each level in the text table, you can make use of the "Show Header" feature in Tableau. Here's how you can do it:

Apologies for the previous incorrect response. In Tableau, there isn't a built-in checkbox feature for text tables. However, you can achieve a similar effect by using special characters or custom shapes in the text table. Here's how you can do it:

1. Drag the DTI Level field to the Rows shelf.

2. Drag the DTI Level field again to the Text Marks card.

3. Right-click on the DTI Level field on the Rows shelf and select "Sort" > "Sort Ascending" from the context menu. This will sort the DTI Levels in the desired order: Low, Medium, High.

4. To add a checkbox character or custom shape in front of each level, you will need to use a special character or custom shape that resembles a checkbox. You can insert a special character by copying it from external sources such as Unicode character tables or using custom shapes that resemble checkboxes.

5. Double-click on the text in the Text Marks card and add the checkbox character or custom shape in front of the DTI Level field. For example, you can copy the checkbox character ✓ (Unicode: U+2713) and append it to each level in the text.

6. To change the title of the text table, click on the default title above the table.

7. In the title text box, enter "DTI Text Table: <Student Name>". Replace "<Student Name>" with your actual name.

8. Press Enter or click outside the title text box to apply the changes.

Now, you should see a text table with a checkbox character or custom shape in front of each DTI Level category, along with the counts of each category. The title of the text table should display "DTI Text Table: <Student Name>". You can adjust the formatting or customize the checkbox character or shape as desired.

Low, Medium, High. appear twice

If the values Low, Medium, and High appear twice in the text table, it could be due to duplicating the DTI Level field in the Rows shelf. Here's how you can resolve the issue:

1. Remove the DTI Level field from the Rows shelf.

2. Place the DTI Level field back in the Rows shelf.

3. Right-click on the DTI Level field on the Rows shelf and select "Show Header" to display the header for the DTI Level field.

4. Drag the DTI Level field to the Text Marks card.

5. Right-click on the DTI Level field on the Rows shelf and select "Sort" > "Sort Ascending" from the context menu. This will sort the DTI Levels in the desired order: Low, Medium, High.

6. Double-click on the text in the Text Marks card and add the checkbox character or custom shape in front of each level, as explained in the previous response.

7. To change the title of the text table, click on the default title above the table.

8. In the title text box, enter "DTI Text Table: <Student Name>". Replace "<Student Name>" with your actual name.

9. Press Enter or click outside the title text box to apply the changes.

By ensuring that you have only one instance of the DTI Level field in the Rows shelf, you should see the Low, Medium, and High values appearing correctly without duplication in the text table.

Finally, we want to view the total loan amounts broken down by their loan purpose for only the

Medium and High DTI Level customers. In addition, we want to see the percentage of total
payments received for the respective loan purpose category compared to the total loan amount.
8. Create a calculated field called Total Payments to Loans
○ This field represents the proportion of total payments received compared to the
total loan amount. This should be calculated by the sum of the Paid Total
variable divided by the sum of the Loan Amount.

Finally, we want to view the total loan amounts broken down by their loan purpose for only the

Medium and High DTI Level customers. In addition, we want to see the percentage of total
payments received for the respective loan purpose category compared to the total loan amount.
Create a calculated field called Total Payments to Loans
This field represents the proportion of total payments received compared to the
total loan amount. This should be calculated by the sum of the Paid Total
variable divided by the sum of the Loan Amount.

Create a calculated field called Total Payments to Loans

This field represents the proportion of total payments received compared to the
total loan amount. This should be calculated by the sum of the Paid Total
variable divided by the sum of the Loan Amount.