Forum Discussion

NickTeam17's avatar
NickTeam17
Frequent Visitor
6 years ago
Solved

Median value calculation

I am calculating the median value for some weekly game sales in the table below:

GameWeek 1Week 2Week 3Week 4Week 5
Worms246810
The Escapists3691215
Overcooked56237
Blasphemous81279

 

I can transpose the data which puts the weekly data into columns for each game.  I then introduced a new measure to calculate the median value for each game.  Four different measures.

I want to have one single Median measure which gives me the median value for each game which I can drag into the above table.

Please could you help.

 

  • NickTeam17 - If you unpivot your week columns so that you end up with:

     

    Game,Week,Value

     

    Then you can create a single measure to calculate your median and then you would put Game and Median into a visual together.

3 Replies