In QuickSight, I would like to create a calculated field that calculates the number of passengers based on the category of a cruise reservation (ID). Reservations can be made either as a group or as an individual. Currently, I have a field that calculates the number of passengers in two rows:
- It calculates the number of passengers when the category field is equal to “individual.”
- It calculates the number of passengers in a second row when the category field is equal to “group.”
I would like to create two separate calculated fields to calculate the number of passengers in each category, instead of combining them into a single field. The objective is to display this information in a single row rather than on two separate rows. The calculated fields will be named “number_passenger_individual” and “number_passenger_group.”