Forum Discussion
uif19085
3 years agoHelper III
Calculate Dynamic Ratios
Trying to find a way to change a ratio calculation with slicer which is having values from a column. For example: i have 3 values in a column: apples, pears, oranges and another column where i foun...
Arul
3 years agoSuper User
uif19085
3 years agoHelper III
Arul
Sure, but i have to show you the real data tables i use:
Automated Ratio =
VAR Auto = CALCULATE(COUNT(Artefact[Requirements Selection]), Artefact[Automated] = 1)
VAR Auto = CALCULATE(COUNT(Artefact[Requirements Selection]), Artefact[Automated] = 1)
VAR _all = CALCULATE(COUNT( Artefact[Requirements Selection]), ALL(Artefact))
VAR _result = auto/_all
RETURN
_result
I have a Slicer for Requirement Selection and I marked with 1 which from these are automated
I have a Slicer for Requirement Selection and I marked with 1 which from these are automated
- Arul3 years agoSuper User
uif19085 ,
I am not sure about the problem. But, Can you multiply the result with 100 and see?
Thanks,
Arul
- uif190853 years agoHelper III
Arul I've debug a little, and the _all variable doesn't work as intended, it should filter by the slicer value, i've got 1M results for it and the result doesn't change from the slicer , should be 5857
- uif190853 years agoHelper III
I've done it. I change _all variable with "
)" Thanks for your help, i will still accept your input.CALCULATE(COUNT( Artefact[Requirements Selection]))