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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi everyone,
I need your help to figure out how to create a matrix or table as shown below:
"Target" is a measure in my case and if just include it to my martix as a value, it shows as below:
Is it possible to achieve "Target" as a single column in front ( as shown in first/top piture)?
Solved! Go to Solution.
Hi @Anonymous ,
Please create the new table and inactive relationship:
MatrixColumns =
UNION ( VALUES ( 'Table'[Date] ), { "Target" } )
Then use the measure:
Measure =
IF (
MAX ( MatrixColumns[Date] ) = "Target",
[Target],
CALCULATE (
SUM ( 'Table'[Value] ),
USERELATIONSHIP ( 'Table'[Date], MatrixColumns[Date] )
)
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Please create the new table and inactive relationship:
MatrixColumns =
UNION ( VALUES ( 'Table'[Date] ), { "Target" } )
Then use the measure:
Measure =
IF (
MAX ( MatrixColumns[Date] ) = "Target",
[Target],
CALCULATE (
SUM ( 'Table'[Value] ),
USERELATIONSHIP ( 'Table'[Date], MatrixColumns[Date] )
)
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 8 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 29 | |
| 19 | |
| 18 | |
| 11 | |
| 10 |