Problem/Motivation

In the case of a base file with columns for country and year, and a relationship file with the same columns, users often need to match on both columns to ensure data accuracy. To do this, we need to create a composite key.

Steps to reproduce

Create a Base CSV with columns: Country, Year, ID.

Row 1: Ghana, 2024, 1

Create a Relationship CSV with columns: Country, Year, Value.

Row 1: Ghana, 2024, A

Row 2: Ghana, 2025, B

Create a View based on the Base CSV.

Add a Relationship to the second CSV, joining on both Country.

Result: The View displays 2 rows for Ghana 2024.

Expected Result: 1 row (Ghana 2025).

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

andileco created an issue. See original summary.

andileco’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.