Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Filtering related data

Hey wonderful PBI community   I'm trying to look at unique moments and filter related moments on the same id to show how often those related moments occore when selecting an indivual moment.    f...
  • v-kkf-msft's avatar
    5 years ago

    Hi Anonymous ,

     

    Try the following formula:

     

    Measure = 
    IF(
        ISFILTERED('Comparison Moment'[Comparison Moment]),
        [match %],
        DIVIDE(
            DISTINCTCOUNT(Main_Data_Set[id]),
            CALCULATE( DISTINCTCOUNT(Main_Data_Set[id]), ALL(Main_Data_Set) )
        )
    )

     

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

    Best Regards,
    Winniz

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.