Forum Discussion

MSW's avatar
MSW
Helper I
4 years ago
Solved

Cross Reference Matrix

Hello,    Im a bit of a novice still to PBI.    I am trying to figure out or know if its possible to create a formula/visual that can show me the cross reference between items in my data. For exa...
  • v-zhangti's avatar
    v-zhangti
    4 years ago

    Hi, MSW 

     

    Please check the following methods.

    Measure:

    Color = 
    Var _Countlocation =CALCULATE(DISTINCTCOUNT('Table'[Location]),ALLEXCEPT('Table','Table'[Customer ID]))
    Var _Countorder=CALCULATE(DISTINCTCOUNT('Table'[Order]),ALLEXCEPT('Table','Table'[Customer ID]))
    return
    IF(_Countlocation>1&&_Countorder>1,"Green",IF(_Countlocation>1,"Red",IF(_Countorder>1,"Blue")))

    Adds a color to each value in the list in conditional format.

    Does this meet your desired outcome?

     

    Best Regards,

    Community Support Team _Charlotte

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