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.
Imagine I have the following table
And I need a matrix like this: I tried adding the allocation and selection columns but no luck.
Thank you very much!
Solved! Go to Solution.
Hi @nithinsakhamuri ,
Please try below steps:
1. below is my test table:
Table:
2. create a measure with below dax formula
Measure =
IF (
HASONEFILTER ( 'Table'[Calculation] ),
CALCULATE (
SUM ( 'Table'[Value] ),
'Table'[Calculation] = SELECTEDVALUE ( 'Table'[Calculation] )
),
SUMX (
FILTER (
ALL ( 'Table' ),
'Table'[Calculation] IN { "Selection", "Allocation" }
),
[Value]
) & "(allocation+selection)"
)
3. add a matrix visual with measure and field
set the column subtotal label:
Please refer the attached .pbix file.
Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @nithinsakhamuri ,
Please try below steps:
1. below is my test table:
Table:
2. create a measure with below dax formula
Measure =
IF (
HASONEFILTER ( 'Table'[Calculation] ),
CALCULATE (
SUM ( 'Table'[Value] ),
'Table'[Calculation] = SELECTEDVALUE ( 'Table'[Calculation] )
),
SUMX (
FILTER (
ALL ( 'Table' ),
'Table'[Calculation] IN { "Selection", "Allocation" }
),
[Value]
) & "(allocation+selection)"
)
3. add a matrix visual with measure and field
set the column subtotal label:
Please refer the attached .pbix file.
Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
It may be possible. Share the download link of the PBI file.
Thank you for the response.
Is there any way to add the attribute(allocation+selection) row in the Calculation Column?
Try go to the settings and "Switch values to rows" under Values > Options.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
71 | |
67 | |
51 | |
39 | |
26 |
User | Count |
---|---|
87 | |
54 | |
45 | |
40 | |
36 |