The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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
User | Count |
---|---|
56 | |
54 | |
54 | |
49 | |
30 |
User | Count |
---|---|
173 | |
89 | |
70 | |
46 | |
45 |