Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

How to compare same rows in a table

I wish to compare values presented on the same row in a table and only filter out the rows that differs.

 

  • Anonymous's avatar
    Anonymous
    4 years ago

    This solved my problem:

     

    = [GUID] <> [#"2022-04-30.GUID"] or [StoreyName] <> [#"2022-04-30.StoreyName"]

6 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    The dates are just the names of the files, hopefully the pic below will explain it. 

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    Sorry for the vague description. Basically, I have 2 tables from different dates. Each table contains 20 000+ rows. The rows contains an ID (GUID) which is a unique text + number string. For each ID there a values, some just number values and some are text values. These two tables also have a mismatch in the numbers of IDs. So I want in my visualisation to filter IDs that are new or missing and values that has changed. I'm a beginner in DAX...

  • isabella's avatar
    isabella
    Microsoft Employee

    Hi Anonymous 

    I think you can use power query to merge the two table,then  press close & apply

    then   add a column to compare the two column

    like if(【2022-04-30】 = 【2022-04-22】,1,0)

    then  filter the data by click the arrow on the column

     

     

    Best Regards,

    Community Support Team _Isabella

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

    • Anonymous's avatar
      Anonymous
      Not applicable

      This solved my problem:

       

      = [GUID] <> [#"2022-04-30.GUID"] or [StoreyName] <> [#"2022-04-30.StoreyName"]