Forum Discussion

Krish_A's avatar
Krish_A
Regular Visitor
2 years ago
Solved

Remove and Add filter to Single Column in Table

Hi Bi Community,   Issue I have a gain/loss column from a table visual (table x) which I'd like to add to another table visual (table y). The issue is table y has a slicer and filter applied to it...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Krish_A ,

    Please try the following methods and check if they can solve your problem:

    1.Create the simple tables.

    2.Create the new column in the Table y.

     

    GainLossY = CALCULATE(AVERAGE('Table x'[gain/loss]), ALL('Table Y'))

     

     

    3.Create the table visual and select Edit interactions in the format pane. Drag the column into the visual.

    4.Create the measure to apply the date filter.

     

    GainLossDate = 
    CALCULATE(AVERAGE('Table x'[gain/loss]), ALL('Table y'), 
                DATESBETWEEN('Table x'[Date], 
                    DATEADD(LASTDATE('Table x'[Date]), -12, MONTH), 
                    LASTDATE('Table x'[Date])
                )
            )

     

     

    5.Drag the measure into the visual.

     

    Best Regards,

    Wisdom Wu

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