Forum

Notifications
Clear all

Variance column in pivot table

4 Posts
3 Users
0 Reactions
90 Views
(@jeffcraft)
Posts: 2
New Member
Topic starter
 

I work in a hospital.  I have a data table (set) that includes many fields, but among them are date of service and diagnosis.  Each row in the data set represents a patient encounter (visit) at the hospital.  I'm wanting to compute a variance in the count of patient encounters between dates of service in 2017 and dates of service in 2018 to see if the occurrence of diagnoses have gone up or down.  I have experimented with value field settings of "difference from" between column 2018 and "base item" of year/column 2017.  However, if I then want to sort by the largest variance to smallest it makes me either sort on column 2017 or 2018 (without the value field setting) and then it does not give me the desired result.  I feel like I am missing an easy step that I just have not learned yet.  Is there any suggestion to do this?  Thanks, Jeff

 
Posted : 10/05/2018 3:17 pm
(@johnmika)
Posts: 24
Eminent Member
 

Hey Jeff,

You need to put the Patient Name or Diagnosis in the Values Area, this will give you a Count of these occurrences.

Then put the Date Field in the Column Labels and either the Patient Name or Diagnosis in the Row Labels (drag this from the Field List).

Right Click on the Pivot Table values and select: Show Values As > Difference From

BASE FIELD = Date

BASE ITEM = (previous)

Let me know if this help.

If it does not, please attach your sample workbook and take out any sensitive info.

Cheers,

John

 
Posted : 11/05/2018 6:22 am
(@jeffcraft)
Posts: 2
New Member
Topic starter
 

I guess I figured it out.  I think I'm still in the mindset of presenting data versus analyzing which is what a pivot table is for.  Also is there a way to do a regional zip code heat map in Excel 2016 from a pivot table or is that a more advanced power pivot, etc. type thing?  Should I keep trying to figure it out or punt?

 
Posted : 15/05/2018 10:56 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Jeffrey,

I don't see why you can't do a heatmap with a PivotTable similar to this: https://www.myonlinetraininghub.com/excel-heat-maps

If you're stuck, please start a new topic for the heatmap and include a sample Excel file so we can give you a specific example.

Mynda

 
Posted : 16/05/2018 12:19 am
Share: