Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Guys,
I have a table with month number = 1,2,3,4,5,6 etc... I would like to convert it into month name = Jan, Feb, Mar, Apr, May, etc..
I duplicated the Month number field and used the below script to covert to month name:
Month =
SWITCH (
[Date Granularity.Level 2: Month],
1, "Jan",
2, "Feb",
3, "Mar",
4, "Apr",
5, "May",
6, "Jun",
7, "Jul",
8, "Aug",
9, "Sep",
10, "Oct",
11, "Nov",
12, "Dec",
BLANK ()
)
However I am getting the below message: Can anyone tell me what is going in here?
Solved! Go to Solution.
@Anonymous
Hi, Switch function is DAX and you are in Query Editor with work with Power Query
The most simple way to obtain this is:
Add Column--> Conditional Column and Enter the conditions
Regards
Victor
@Anonymous
Hi, Switch function is DAX and you are in Query Editor with work with Power Query
The most simple way to obtain this is:
Add Column--> Conditional Column and Enter the conditions
Regards
Victor
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |