Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello everybody!
I'm having trouble creating a matrix view using two different tables but with the same fields in the summary lines.
I have tables like these:
SALES:
| SELLER ID | SALE VALUE (R$) |
| 1 | 20 |
| 1 | 30 |
| 1 | 50 |
| 2 | 50 |
| 2 | 40 |
| 2 | 50 |
| 3 | 200 |
| 3 | 25 |
| 3 | 50 |
OVERTIMES:
| SELLER ID | OVERTIME (HOURS) |
| 1 | 1 |
| 1 | 2 |
| 2 | 3 |
| 3 | 2 |
| 3 | 3 |
| 3 | 5 |
Both report different things, but share the same SELLER ID.
I would like to create a matrix to view both tables summarized, like this:
| SELLER ID | SUM OF SALE VALUE (R$) | SUM OF OVERTIME (HOURS) |
| 1 | 100 | 3 |
| 2 | 140 | 3 |
| 3 | 275 | 10 |
However when I try to add values from a second table in the matrix, it looks like this:
| SELLER ID | SUM OF SALE VALUE (R$) | SUM OF OVERTIME (HOURS) |
| 1 | 100 | 16 |
| 2 | 140 | 16 |
| 3 | 275 | 16 |
Solved! Go to Solution.
@Anonymous,
This can be achieved with a star schema. Create a SELLERS table using Power Query or DAX. Here's a DAX calculated table:
SELLERS =
DISTINCT (
UNION ( DISTINCT ( SALES[SELLER ID] ), DISTINCT ( OVERTIMES[SELLER ID] ) )
)
Create relationships:
In the visual, use SELLERS[SELLER ID]:
Proud to be a Super User!
@Anonymous,
This can be achieved with a star schema. Create a SELLERS table using Power Query or DAX. Here's a DAX calculated table:
SELLERS =
DISTINCT (
UNION ( DISTINCT ( SALES[SELLER ID] ), DISTINCT ( OVERTIMES[SELLER ID] ) )
)
Create relationships:
In the visual, use SELLERS[SELLER ID]:
Proud to be a Super User!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 70 | |
| 50 | |
| 42 | |
| 40 |