Complete the code to create a primary data source connection in Tableau.
PRIMARY_CONNECTION = tableau.[1]('Sales_Data')
In Tableau, connect is used to establish a primary data source connection.
Complete the code to blend a secondary data source on a common field.
blend = primary.blend(secondary, on='[1]')
Blending usually happens on a common field like Region to combine data sources.
Fix the error in the code to correctly blend data sources in Tableau.
blended_data = primary.blend(secondary, on=[1])The field name must be passed as a string with quotes, like 'Region'.
Fill both blanks to create a calculated field that sums sales from the primary and secondary sources.
Total_Sales = [1] + [2]
To sum sales from both sources, use SUM on each source's sales field.
Fill all three blanks to filter blended data for the year 2023 and region 'West'.
filtered_data = blended_data.filter([1] == [2]).filter([3] == 'West')
Filter by Year equal to 2023 and Region equal to 'West'.
