Design a view in a map such that if a user selects any state, the profit and sales in the cities under that state would show up

We must first have State, City, Sales, and Profit variables in our dataset if we want to present the sales and profit of each city under each state in the same worksheet.
Double-click on the State field
Drag City and drop into Marks card (under the State field)
Drag Sales and drop into Size
Drag Profit and drop into Color
Click on Size legend and increase the size (75%)
Right-click on the State field and select Show Quick filter
Select any state and check whether we got the required view or not.
In this, the view size indicates the number of sales and the color indicates the profit values.