Forum Discussion

robertsbm's avatar
robertsbm
Frequent Visitor
8 years ago

Comparing two filtered text fields in the same table and displaying the differences

Hi there! I have two calculated text visuals (Source and Target) based on the same column (Version). They are both sliced differently. I want a third calculated column to display the differences from slicked Target to the sliced Source. The data and what I'd expect looks like this. I can't seem to figure out the correct DAX.

 

[Source]     [Target]     [Difference]

---------     ---------     ------------

|1111|         |0000|        |1111|

|2222|         |2222|

|3333|         |3333|

|4444|         |4444|

 

Thanks!

6 Replies

    • robertsbm's avatar
      robertsbm
      Frequent Visitor

      Thanks for your reply. I'll try adding more detail. There's a fourth table involved called environment. I have a slicer of it on the report twice. The first slicer (ENV1) affects the Source table, and the second slicer (ENV2) affects the Target table. I'm having trouble getting the difference (from Source and Target) to display in a third column.

       

                                               (w/ENV1 Filter)  (w/ENV2 Filter)

      [ENV1]            [ENV2]            [Source]            [Target]            [Difference]

      --------           --------            ---------            ---------           -------------

      |Dallas|           |Chicago|          |1111|               |0000|              |1111|

                                                     |2222|               |2222|

                                                     |3333|               |3333|

                                                     |4444|               |4444|