Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Compare value in dimension table

Hi,   I have a pretty standard datamodel that consists of a fact table and several dimension tables, all many-to-one relationships, unidirectional towards the fact table.   In the dimension table...
  • tamerj1's avatar
    tamerj1
    4 years ago

    Hi Eric,

    Please try

    MyMeasure =
    IF (
        CALCULATE (
            SELECTEDVALUE ( DIM[ColumnToShow] ),
            CROSSFILTER ( DIM[KeyColumn], FACT[KeyColumn], BOTH )
        ) > 2,
        1
    )