Forum Discussion
How to create % restricted to a certain group?
- 5 years ago
Hi, Anonymous
It’s my pleasure to answer for you.
According to your description,I think you can create some measures to display the cluster bar chart.
Like this:
Measure0 = VAR a = COUNTROWS ( ALL ( 'Raw Data' ) ) VAR b = COUNTROWS ( FILTER ( ALL ( 'Raw Data' ), [Semester] = SELECTEDVALUE ( 'Raw Data'[Semester] ) ) ) VAR c = DIVIDE ( b, a ) VAR d = COUNTROWS ( FILTER ( ALL ( 'Raw Data' ), [Semester] = SELECTEDVALUE ( 'Raw Data'[Semester] ) && [Dropout] = 0 && [Intervention] = 0 ) ) RETURN DIVIDE ( d, c ) / 100Here is my sample .pbix file.Hope it helps.
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, Anonymous
It’s my pleasure to answer for you.
According to your description,I think you can create some measures to display the cluster bar chart.
Like this:
Measure0 =
VAR a =
COUNTROWS ( ALL ( 'Raw Data' ) )
VAR b =
COUNTROWS (
FILTER (
ALL ( 'Raw Data' ),
[Semester] = SELECTEDVALUE ( 'Raw Data'[Semester] )
)
)
VAR c =
DIVIDE ( b, a )
VAR d =
COUNTROWS (
FILTER (
ALL ( 'Raw Data' ),
[Semester] = SELECTEDVALUE ( 'Raw Data'[Semester] )
&& [Dropout] = 0
&& [Intervention] = 0
)
)
RETURN
DIVIDE ( d, c ) / 100Here is my sample .pbix file.Hope it helps.
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.