The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.
User | Count |
---|---|
80 | |
78 | |
37 | |
34 | |
31 |
User | Count |
---|---|
93 | |
81 | |
60 | |
49 | |
49 |