Forum Discussion

geivaz0606's avatar
geivaz0606
Regular Visitor
4 years ago
Solved

Division Measure with special case

Good Day, I hope someone can help me with this request.  It seems like a simple problem but I am stumped as to how to handle this.   I have a simple dataset.  It looks something like this.   ...
  • AlexisOlson's avatar
    AlexisOlson
    4 years ago

    It's not clear to me what the desired result should be in such a case. Are you trying to calculate an average iterating over the rows of the fact table?

     

    If so, just stick it inside an AVERAGEX.

    Preferred Method =
    AVERAGEX (
        'Fact',
        SWITCH (
            'Fact'[Risk Status],
            "On-Risk", [Progress Measure],
            "Inactive", 0,
            "Off-Risk", 1
        )
    )