Skip to main content

I have attached the files I am working with to accomplish this. The unique identifier column is the "student ID" column. The "Graduation on track" column will be referenced to calculate the Y axis value and will be the % of students that have either a "Yes" or "Probably" value, while excluding "Unknown" from the calculation (so all rows with Unknown need to be excluded). I will need to filter out BYU from the Schools considered in this calculation so all rows with "BYU" as a value in the schools column must be excluded in this calculation. I will potentially need to filter by additional column values as additional columns may be present in the real data so it would be good to be able to easily add additional filters to this visual.

 

I have attached the excel data source I am working with. There is a separate tab for the Data, the pivot table used to get the %s desired, and the expected end result in the tab titled "Chart". Essentially I want to recreate that chart in Tableau instead of Excel. I use a regular version of Tableau Desktop.

 

Help much appreciated!

3 respuestas
  1. 21 abr 2022, 7:19

    Thank you James, I really appreciate the help and I apologize for the list of requirements as the primary problem for me was the calculation as I am not so familiar with LOD calculations but I will study up on those by watching the recommended content creators provided.

     

    I tried to be as descriptive as possible in case the solution provided would not be possible with additional filters that I may have overlooked or possibly if the solutions would only work with all values considered (e.g. not filterable). I have seen some very complex/sophisticated visuals created in this application that sometimes cannot have a small adjustment made depending on the way they were built, or they are required to be built off a pivoted set of data that already has a % column.

     

    I have managed to adjust the graph in the workbook provided to suit my needs by dividing the fixed LOD calculation by the same fixed LOD calculation that includes all values in the IN clause (the denominator essentially) and adding context filters for the "unknown" values to apply despite the LOD calculation.

     

    As a side note I am curious if there is a way to possibly add an additional line to the graph that represents the % for all the ethnicities (essentially the total number of students that earned a "yes" or "probably" divided by all students with the exception of the filtered out "unknown" and "BYU" students), in some similar cases adding totals would accomplish something similar in like a bar graph but it doesn't look like it would work here.

     

    I also was wondering if it would be possible to build a graph like this without pivoting the data in excel beforehand when the data representing the line categories (ethnicities in the previous case) is present in multiple columns instead of 1. In this case I included 4 additional columns all highlighted in yellow in the spreadsheet ("business degree", "out of state", "loan borrower", "honors student") that all only contain a "yes" value or a blank". I would like to do the same calculation (although i believe this calculated field wouldnt work in this case without prep) except all scholars marked as "yes" in the given column are considered the column header title. So the 4 lines represented would be the 4 column headers "yes" values.

     

    The additional questions were just wonderings that you honestly don't have to answer and I should try and do further research around myself, figured I would put them out there anyway. I commend you for all the help James as I really appreciate it and it was exactly what I needed!