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.
Hello,
I have a column in the dataset that specifies the number of days(num_ofDays) which is of the type integer.
I'm trying to create a new column called month that lets me determine the month based on number of days.
The formula I'm trying to use is Ceiling(num_ofDays/30.5, 1)
Using this formula causes Power BI to throw an error & hangup & lose all progress on reports. The error Im getting is
Solved! Go to Solution.
@sam245gonsalves
This could be a data conversion issue, check your data source and the data types of the columns try to do it on a small sample of your data.
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hi, @sam245gonsalves
You may try the following calculated column to see if it works.
M = ROUNDUP([NumOfDays]/30.5,0)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@sam245gonsalves
This could be a data conversion issue, check your data source and the data types of the columns try to do it on a small sample of your data.
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Hey @Fowmy
Thanks, I tried the above but it still causes the entire application window to freeze
I tried the roundup function as well - with the same results.
It should work, try the fully qualified column name
New Column = Ceiling(Table[num_ofDays]/30.5, 1)
________________________
If my answer was helpful, please consider Accept it as the solution to help the other members find it
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
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 |
---|---|
113 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |