Forum Discussion

MiraAnniina's avatar
MiraAnniina
New Member
5 years ago
Solved

Calculated measures

Do you know if it's possible to make such function, that shows calculated measures on rows based on months on columns? I have calculated measures on rows and calendar-hierarchy from tabular model.  ...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi MiraAnniina 

    In addition to  

    Measure = 
    SWITCH(MAX('Table'[Month]),"January","xxx","February","yyy","zzz")

    Calculated column:

    Calculated column = 
    SWITCH('Table'[Month],"January","xxx","February","yyy","zzz")

    Result is as below.

    Build a matrix visual and don't forget set show values in row in Format.

    If you want to show result as you show above, you may need to build measures for each month.

     

    Best Regards,

    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.