Forum Discussion
Horizontal bar charts
Thanks.
It didnt like this formula.
So I changed it slightly to get the correct variable names.
Now it still doenst like one aspect of it (shown in red below):
- Anonymous3 years agoNot applicable
Hi talderton
Whether you mean to show the ratio of negative types and positive types, if you need to calculate this, you can consider the following two methods
1.Put the [Positive response] into a slicer, then create the measure
Positive response percentage of students = DIVIDE (CALCULATE (sum('MACSIS 2019 and 2021 survey restructured'[Number of students]),CALCULATE (sum('MACSIS 2019 and 2021 survey restructured'[Number of students]),ALLEXCEPT('MACSIS 2019 and 2021 survey restructured','MACSIS 2019 and 2021 survey restructured'[Enumber]),'MACSIS 2019 and 2021 survey restructured'[Positive reponse]] in {"Positive","Negative"}))2.You need to create two measures, one is positive, the other is negative. the measure can refer to the original measure I offered before. The originsl measure calculates positive type, then you need to create a new measure to calculate negative type.
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- talderton3 years agoFrequent Visitor
Thanks for that.
I am getting a message that: 'The end of the input was reached' for this calculation, but nothing is showing in red so its not telling me why its failed.
- Anonymous3 years agoNot applicable