The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
17 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
9 | |
8 |