Forum Discussion

StevenT's avatar
StevenT
Helper V
9 months ago
Solved

Matrix - Hide/Show secondary Rows in matrix

Hi, is there a way to dynamically hide/show a secondary dimension in a matrix, depending on what a user chooses in a field parameter?  
  • DataVitalizer's avatar
    DataVitalizer
    9 months ago

    Things are getting clearer now, you can’t make a field parameter itself add/remove extra levels, but you can simulate it., create a conditional field (measure) that only returns TrackList[Title] when the selected parameter = “Artist,” and returns BLANK() otherwise, then add that measure as the second row in your matrix. Power BI automatically hides a matrix level if it only contains blanks, so the secondary row will appear only when “Artist” is chosen.

    Did it work? 👍 A kudos would be appreciated
    🟨 Mark it as a solution to help spread knowledge 💡

    🟩 Follow me on LinkedIn