In Tableau, this map was created with latitude generated and longitude generated. I tried to create calc fields to define the 4 regions but got an error "operation is not permitted." I want the map to display the four regions with color identified on the legend so each region can display the number of diseases. Because of prior answers, I tried:
IF [Latitude] >= 35 AND [Longitude] <= -90 THEN "Southeast"
ELSEIF [Latitude] >= 35 AND [Longitude] > -90 THEN "Northeast"
ELSEIF [Latitude] < 35 AND [Longitude] <= -90 THEN "Southwest"
ELSE "Northwest"
END
But received an error "undefined field Latitude and Longitude."
Data Worksheet
Dashboard
ston
Analysis
Map
Format
Window Help
8. Longitude (generated) Latitude (generated)
Show Me
Analytics OHAS_Cleaned_Dataset
Pages
ill Columns
Rows
earch PYI. Filters 36][8] CNT(OHAS_Cleaned. ue Disease Region Disease CUI Latitude (generated) Gender Height Marks Intensity Region Color Calc, Region O Automatic Region . c Season Color Size Label h Severity Q Symptom CUI Detail Tooltip Symptoms # Weight + Region Messure Names CNT(OHAS_CI. # Age Region BMI Level Count by Region calc # Height Inches calc Severity calc WeightIbs) O Latitude (generated) Longitude (generated OHAS_Cleaned_Dataset.cs. Measure Values
Map of Diseases by Region(2
Region AM northeast northwest southeast southwest
North Dakota
Count of Disease by Re 511 540 560 571
South Oregon
Region northeast northwest southeast southwest
Nebraska Iowa Pennsylvania Utah Colorado Kansas Missouri Oklahoma Texas 2024 Mapbox OpenStreetMap Sonora Data Source Count of Symptoms by Disease Count of Diseases by Region Count by Region&Age Map of Diseases by Region Map of Diseases by Region 2 Disease Severity by Height and Disease Severity by Age and Ge.. Sympto