
[英]Is there a way to evaluate for first day of the month and last day of the month?
[英]Is there any way of capitalize the first letter of the month in date hierarchy?
我需要一种方法将日期层次结构中月份的第一个字母大写,以便在矩阵中使用它们。
我尝试做以下专栏:
month = SWITCH(TRUE(),
MONTH('table'[date]) = 1, "January",
MONTH('table'[date]) = 2, "February",
MONTH('table'[date]) = 3, "March",
MONTH('table'[date]) = 4, "April",
MONTH('table'[date]) = 5, "May",
MONTH('table'[date]) = 6, "June",
MONTH('table'[date]) = 7, "July",
MONTH('table'[date]) = 8, "August",
MONTH('table'[date]) = 9, "September",
MONTH('table'[date]) = 10, "October",
MONTH('table'[date]) = 11, "November",
MONTH('table'[date]) = 12, "December")
它有效,但是当我在矩阵中使用它时,月份按字母顺序排序。
按字母顺序排序是所有列的默认排序。 您需要添加排序列并为您的原始列指定它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.