The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello,
I am trying to write a formula that rounds all numbers with a decimal up to the nearest whole number. My issue is that if the number is already a whole number it rounds the number, but I only want to round if there is a decimal.
Current formula:
Solved! Go to Solution.
Just using some quick math, I couldn't duplicate your problems, so I'm thinking it has something to do with the Calculate Nested function in the RoundUP. Have you tried to allow the Round_Up to reference your 'Qty Case/Tote' column (or is it a measure?) without doubled the math again in the formula?
Proud to give back to the community!
Thank You!
Hi @Kfausch ,
Is your issue solved now?
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Just using some quick math, I couldn't duplicate your problems, so I'm thinking it has something to do with the Calculate Nested function in the RoundUP. Have you tried to allow the Round_Up to reference your 'Qty Case/Tote' column (or is it a measure?) without doubled the math again in the formula?
Proud to give back to the community!
Thank You!
@Kfausch , try with some if condition like
Pallet Qty = divide([Quantity On-Hand] , (CALCULATE(SUM('Item UOM'[Qty_per_Unit_of_Measure]), 'Item UOM'[Code] = "pallet") -1))
if
Pallet Qty new = if(max(table[desciption]) in {"A","B","C"} , round([Pallet Qty],0),[Pallet Qty])
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
78 | |
70 | |
52 | |
50 |
User | Count |
---|---|
123 | |
119 | |
76 | |
64 | |
60 |