Forum Discussion
MiraAnniina
5 years agoNew Member
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. ...
- Anonymous5 years ago
Hi MiraAnniina
In addition to amitchandak ‘s reply, if you want to show result "xxx" or "yyy" based on the month column, you just need to build one measure/ calculated column to achieve your goal.
Try if or switch function.
Measure:
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.
PhilipTreacy
5 years agoSuper User
Hi MiraAnniina
I'm not very clear about what you want to do. Can you please provide some examples of the data and the results you want.
regards
Phil