Forum Discussion
Clustered column chart - unfiltered additional column
- 7 years ago
Hi Anonymous
If you could create measure as below
count = CALCULATE(COUNT(Sheet1[case]),Sheet1[case] in {"compliant"}) count all = COUNTA(Sheet1[case]) % = [count]/[count all] count 2 = CALCULATE([count],ALLEXCEPT(Sheet1,Sheet1[cate1])) count all 2 = CALCULATE([count all],ALLEXCEPT(Sheet1,Sheet1[cate1])) %2 = [count 2]/[count all 2]As tested, it is impossible to create a columns chart as you provided with the current data.
could you accept a column and line chart?
Or create a new table,
Table = VAR new1 = SUMMARIZE ( Sheet1, Sheet1[cate1], Sheet1[case role], "%", CALCULATE ( COUNT ( Sheet1[case] ), Sheet1[case] IN { "compliant" } ) / COUNTA ( Sheet1[case] ) ) VAR new2 = SUMMARIZE ( Sheet1, Sheet1[cate1], "case role", "all", "%", CALCULATE ( COUNT ( Sheet1[case] ), FILTER ( ALLEXCEPT ( Sheet1, Sheet1[cate1] ), Sheet1[case] IN { "compliant" } ) ) / CALCULATE ( COUNT ( Sheet1[case] ), ALLEXCEPT ( Sheet1, Sheet1[cate1] ) ) ) RETURN UNION ( new1, new2 )Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous
If you could create measure as below
count = CALCULATE(COUNT(Sheet1[case]),Sheet1[case] in {"compliant"})
count all = COUNTA(Sheet1[case])
% = [count]/[count all]
count 2 = CALCULATE([count],ALLEXCEPT(Sheet1,Sheet1[cate1]))
count all 2 = CALCULATE([count all],ALLEXCEPT(Sheet1,Sheet1[cate1]))
%2 = [count 2]/[count all 2]
As tested, it is impossible to create a columns chart as you provided with the current data.
could you accept a column and line chart?
Or create a new table,
Table =
VAR new1 =
SUMMARIZE (
Sheet1,
Sheet1[cate1],
Sheet1[case role],
"%", CALCULATE ( COUNT ( Sheet1[case] ), Sheet1[case] IN { "compliant" } )
/ COUNTA ( Sheet1[case] )
)
VAR new2 =
SUMMARIZE (
Sheet1,
Sheet1[cate1],
"case role", "all",
"%", CALCULATE (
COUNT ( Sheet1[case] ),
FILTER ( ALLEXCEPT ( Sheet1, Sheet1[cate1] ), Sheet1[case] IN { "compliant" } )
)
/ CALCULATE ( COUNT ( Sheet1[case] ), ALLEXCEPT ( Sheet1, Sheet1[cate1] ) )
)
RETURN
UNION ( new1, new2 )
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-juanli-msft OMG, this works like magic. I was suspecting that additional table would be needed.
Nevetheless, both options work like magic. Thanks so much!