Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Filtering the columns used in a measure calculation

Hi All,   I have 4 columns, lets call the, A,B,C,D   Each column has some numbers   Company A B C D Apple 1 0.2 0.3 0.2 Facebook 0 0.4 0.5 0.4 Amazon 0.6 1 0.8 0...
  • parry2k's avatar
    6 years ago

    Anonymous - I would recommend to unpivot the data to do so, 

     

    click transform data
    - select company
    - right-click, unpivot other columns it will add two columns, attribute, and value, rename these as per your requirement
    - close and apply

    To visualize,
    - matrix visual:
    - add country rows,
    - add attribute on columns, you can also use this in slicer, to select respective A/B/C/D
    - add value on values section, change aggregation to average

    I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!