Forum Discussion

nbufff's avatar
nbufff
Icon for Helper I rankHelper I
1 year ago
Solved

How to get change the matrix visual column header name dynamically based on slicer

Hi, I stuck on my case by showing matrix visual header name dynamically based on slicer selection.

I have a table with below information.

I added a slicer to select the version. e.g. if I choose version A. the matrix table will show vs and "Version A" Qty, if I choose version B, the same matrix table will show vs and "Version B" Qty.  Pls give a hint how to achieve that? Thanks.

 

 

 

2 Replies

    • nbufff's avatar
      nbufff
      Icon for Helper I rankHelper I

      Jihwan_Kim , thanks for your solution. It works for me. Just one question: if I have more than 100 versions, is there any way to set the paramter dynamically as well? Thanks!

      e.g. 

      Parameter = {
          ("A", NAMEOF('Data'[version A]), 0),
          ("B", NAMEOF('Data'[version A]), 1),
          ("C", NAMEOF('Data'[version A]), 2)
      ...   
         ("AAA", NAMEOF('Data'[version A]), 100)
      }