Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
donnabristow
Contributor
Contributor

Pivot Table Help

I have an excel sheet where we have several columns that list a specific checklist item and if the checklist item is defective the next column will list the defect. 

I need a pivot table that will list all of the headings and the vehicle id as a row and then need to count the number of Defective items and also list the defects on the measure side of the pivot table by region.

 

This is the excel sheet

Vehicle Inspection Date and Time SubmittedRegionTruck No.Headlights Low and High BeamHeadlights Low and High Beam DefectFront Left/Right Turn SignalsFront Left/Right Turn Signals DefectWindshieldWindshield Defect
2019-01-01 05:02:40MidconTF10045DEFECTIVECRACKED HEADLIGHTSGood Operating Condition Good Operating Condition 
2019-01-01 05:11:22PERMIANTF10075DEFECTIVE DEFECTIVERIGHT SIGNAL GETS STUCKGood Operating Condition 
2019-01-01 05:39:53MidconTF10069Good Operating Condition Good Operating Condition DEFECTIVECRACK IN WINDSHIELD

 

 

Pivot table needs to look similar to below when expanded.

 

 

Midcon

Permian

 

# of Defects

Defects

 

[Headlights Low and High Beam Defect

3

 

 

     TF10045

1

cracked headlights

 

     TF10075

2

 

 

[Front Left/Right Turn Signals Defect

1

 

 

     TF10075

1

 

right signal gets stuck

[Windshield Defect

1

 

 

     TF10069

1

crack in windshield

 

1 Reply
AdiPai
Creator II
Creator II

Try Something like this  -

clipboard_image_0.png

for the measure - do check the business requirement to understand what defines a  defect ..  .. but the measure could be something like this 

 

clipboard_image_1.png