Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
i'm trying to create a column that checks if the achievement is less than 0.5 , it should round the number to 0.5 otherwise, it should return the number as is. for example , if achievement is 0.2 or 0.3 , the column should return 0.5 and if achievment is 1.2 it will return 1.2. i tried to create the custom column with below code but it didn't work.
if ([achievement])<0.5 then 0.5 else ([achievement])
Solved! Go to Solution.
Looks like your numbers are in text format. You can do this
if Number.From([achievement])<0.5 then 0.5 else Number.From([achievement])
A shorter construction would be following
List.Max({Number.From([achievement]), 0.5})
Looks like your numbers are in text format. You can do this
if Number.From([achievement])<0.5 then 0.5 else Number.From([achievement])
A shorter construction would be following
List.Max({Number.From([achievement]), 0.5})