Forum Discussion
Calculated measures
- 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.
Hi MiraAnniina
Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.
Best Regards,
Rico Zhou