Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello. I have a table in this shape:
| Customer | Article | price |
| Peter | Bread | 4 |
| Peter | Milk | 3 |
| Julie | Milk | 2 |
| Peter | Crackers | 3 |
Where the number of article is fixed (3 in this case bread, milk and crackers) and prices can be different for the same article. Every customer can buy an article only once. I need to create a table like this one where it is easy to check what articles a specific customer bought.
| Customer | Bread | bread price | Milk | milk price | crackers | crakers price |
| Peter | yes | 4 | yes | 3 | yes | 3 |
| Julie | yes | 2 |
So leaving the corresponding columns empty where nothing has been bought by a specific person.
Do you know how can I solve this problem with powerBi?
Thanks in advance to anyone that will give suggestion.
Best regards
Paolo
Solved! Go to Solution.
This can be achieved with the measures below:
Bought = IF ( NOT ISBLANK ( MAX ( FactTable[Article] ) ), "yes" )Price = MAX ( FactTable[price] )
Create matrix (use the measures in Values field well):
Proud to be a Super User!
Dear Datainsights thank you very much for your precious help!
This can be achieved with the measures below:
Bought = IF ( NOT ISBLANK ( MAX ( FactTable[Article] ) ), "yes" )Price = MAX ( FactTable[price] )
Create matrix (use the measures in Values field well):
Proud to be a Super User!
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 49 | |
| 40 | |
| 37 | |
| 14 | |
| 13 |
| User | Count |
|---|---|
| 85 | |
| 70 | |
| 37 | |
| 28 | |
| 27 |