Forum Discussion
fpennisi17
Helper III
5 years agoCalculate frequency by sample type
Hi, I have a table similar to the following one: Asset State Type Samples AAAAA 0 X 1000 AAAAA 1 X 200 AAAAA 2 X 300 AAAAA 3 X 50 AAAAA 0 Y 500 A...
- 5 years ago
Hi, fpennisi17 , you might want to try this measure,
% Type = DIVIDE ( MAX ( 'Table'[Samples] ), CALCULATE ( SUM ( 'Table'[Samples] ), ALLEXCEPT ( 'Table', 'Table'[Type] ) ) )
Fowmy
Super User
5 years agofpennisi17
Create two measure and add to a matrix;
Count = SUM(Table1[Samples])
----------------------------------------------------
Percent =
DIVIDE(
[Count],
CALCULATE(
[Count],
ALLSELECTED(Table1[State])
)
)________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂