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 need to sort my month name in the date order and not on alphabatical order so I was trying to add a new column based on month name which will give me the month no..
Here is my formula..
Month_Number = Month('Table1'[month_name])
This is the error I get below...
A single value for column 'master renewal month' in table 'Full list' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.
Please help!!
Solved! Go to Solution.
Hi @nuttybuddy,
I don't think you can directly convert month name to number, maybe you can try to use datevalue function to transfer them to date, then use month function to get month number.
Sample:
MonthNum = MONTH(DATEVALUE('Table'[Month Name]&"/1"))
BTW, it seems like you are try to input calculated column formula into a measure, right?
Regards,
Xiaoxin Sheng
Hi @nuttybuddy,
I don't think you can directly convert month name to number, maybe you can try to use datevalue function to transfer them to date, then use month function to get month number.
Sample:
MonthNum = MONTH(DATEVALUE('Table'[Month Name]&"/1"))
BTW, it seems like you are try to input calculated column formula into a measure, right?
Regards,
Xiaoxin Sheng
Hi @Anonymous
When i tried this function in my chart it is popping as "Cannot convert value '/1' of type Text to type Date." can you please help
Thanks
Vamsi
HI @nuttybuddy
Do you have another column in the same table that is a DateTime value that matches the same month?
User | Count |
---|---|
61 | |
59 | |
54 | |
51 | |
33 |
User | Count |
---|---|
179 | |
87 | |
70 | |
48 | |
45 |