Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi everyone reading this post!
I need help with creating a matrix with a calculated value in each cell.
What i want to achieve is to recognize the number of sales a kombination of two different items have together.
As an example, the table could be looking as below:
Orderno item.no
| 1 | 12 |
| 13 | |
| 14 | |
| 2 | 13 |
| 3 | |
| 3 | 3 |
| 13 | |
| 14 | |
| 15 | |
| 4 | 14 |
| 15 | |
| 5 | 13 |
| 3 | |
| 6 | 12 |
| 13 | |
| 7 | 13 |
| 14 | |
| 3 |
And the result of the measure i would like to get from this table is as below, the bold numbers:
item.no
| 3 | 12 | 13 | 14 | 15 | |
| 3 | 0 | 0 | 4 | 2 | 1 |
| 12 | 0 | 0 | 2 | 1 | 0 |
| 13 | 4 | 2 | 0 | 3 | 1 |
| 14 | 2 | 1 | 3 | 0 | 2 |
| 15 | 1 | 0 | 1 | 2 | 0 |
Thanks in advance!
Solved! Go to Solution.
Hi @Torudd-55 ,
You could pivot item.no column in the query editor.
Hi @Torudd-55 ,
You could pivot item.no column in the query editor.
If the order number and item number are there in all rows. Count item_no, in the matrix, should give you the same.
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.
My Recent Blog - https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 38 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 30 | |
| 26 | |
| 26 |