Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Display pair once in table

Hi all,   I have the following data and I need to display them in a table visualization. A   B   Counts user1   user2   2 user2   user1   2 user3   user1   1 user1 ...
  • v-kelly-msft's avatar
    5 years ago

    Hi  Anonymous ,

     

    First create an index column in query editor;

    Then create 2 columns as below:

    Column = 'Table'[A]&'Table'[B]
    Column 2 = 'Table'[B]&'Table'[A]

    Then create a measure as below:

    Measure = 
     var _previous=CALCULATE(MAX('Table'[Column]),FILTER(ALL('Table'),'Table'[Index]<MAX('Table'[Index])))
     Return
    IF(_previous=MAX('Table'[Column 2]),BLANK(),MAX('Table'[Counts]))

    And you will see:

    For the related .pbix file,pls see attached.

     

    Best Regards,
    Kelly

    Did I answer your question? Mark my post as a solution!