Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
Can anyone please help me with the below ? My Data looks similar to the below two tables.
I want to create a matrix based on these tables.
Result :
Basically, I want to put the old amount and the new amount against the old category in the matrix.
Any help is appreciated.
Thanks,
Solved! Go to Solution.
hi @powerbeei
try to
1) relate two tables via Cat and Cat_new column
2) write three measures like:
_Amt1 = SUM(Table1[Amt1])
_Amt2 = SUM(Table2[Amt2])
Variance = [_Amt1] - [_Amt2]
3) plot a matrix in Power BI Desktop or pivot table in Excel like:
The most critical part is to relate two tables via Cat and Cat_new column, instead by Key columns suggested by default.
Hi @VahidDM Sorry, Please see the data below
Key Column1 Cat Amt1
1000|21/02/2022 A E1 252
1000|21/02/2023 A E2 255
1001|21/02/2024 A E3 258
1002|21/02/2025 A E4 261
1000|21/02/2026 A E5 264
1000|21/02/2027 A E6 267
1000|21/02/2030 B F0 276
1003|21/02/2031 B F1 279
1000|21/02/2029 C H0 273
1000|21/02/2028 C H1 270
Table 2
Key Cat_new Amt2
1001|21/02/2024 E1 125
1000|21/02/2023 E2 101
1000|21/02/2022 E3 100
1002|21/02/2025 E3 125
1000|21/02/2026 E5 249
1000|21/02/2030 F0 125
1000|21/02/2027 F1 300
1003|21/02/2031 F1 158
1000|21/02/2028 H1 355
1000|21/02/2029 H1 387
hi @powerbeei
try to
1) relate two tables via Cat and Cat_new column
2) write three measures like:
_Amt1 = SUM(Table1[Amt1])
_Amt2 = SUM(Table2[Amt2])
Variance = [_Amt1] - [_Amt2]
3) plot a matrix in Power BI Desktop or pivot table in Excel like:
The most critical part is to relate two tables via Cat and Cat_new column, instead by Key columns suggested by default.
Thanks @FreemanZ . Think will have to use Categories to relate the table as you suggested. Was hoping to use dates if I need to plot YTD etc. but will come with work around if needed.
Thanks for your help.
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 |
|---|---|
| 6 | |
| 5 | |
| 5 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 15 | |
| 12 | |
| 12 |