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 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 @v-shex-msft
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?
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |