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 August 31st. Request your voucher.
Hi
I have a numbers column, I want to round up the numbers to the nearest 0.5
for example:
1.2 ----> 1.5
1.9---->2
0.6--->1
0.4---> 0.5
tried all the round function W/O any success,
thanks
Solved! Go to Solution.
Hi @TomerIwanir1 ,
I create a table as you mentioned.
Then I think you can use CEILING function and here is the document: CEILING function (DAX) - DAX | Microsoft Learn
So here is a new calculated column.
Column = CEILING('Table'[Number] * 2, 1) / 2
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @TomerIwanir1 ,
I create a table as you mentioned.
Then I think you can use CEILING function and here is the document: CEILING function (DAX) - DAX | Microsoft Learn
So here is a new calculated column.
Column = CEILING('Table'[Number] * 2, 1) / 2
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You could try one of these functions
https://www.sqlbi.com/tv/floor-mround-ceiling-iso-ceiling-dax-guide
User | Count |
---|---|
11 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
22 | |
14 | |
14 | |
9 | |
7 |