Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
11 | |
9 | |
6 |