Forum Discussion

Lakshmiramesh's avatar
Lakshmiramesh
Regular Visitor
2 years ago
Solved

Matrix Visualization :How to hide columns and same time text wrap

Hej,   I need to hide columns , with the condition like before 2024 means hide few columns, after or current year means shows few column in matrix Visualization .   When I just adjust the slider,...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Lakshmiramesh ,

    Based on my testing, please try the following methods again:

    1.Create the simple table.

    2.Create the new measures to filter the hide columns.

    Hide column = 
    var _dat = SELECTEDVALUE('Table test'[Date])
    var pro_ = SELECTEDVALUE('Table test'[Program])
    var result = CALCULATE(SUM('Table test'[Cost]), ALLEXCEPT('Table test', 'Table test'[Date], 'Table test'[Program]))
    RETURN
    IF(_dat = "Current year 2024" && pro_ in {"Budget", "Forbrug", "test1"}, BLANK(), result)

    3.Drag the measure into the matrix visual values.

    4.The result is shown below.

    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.