Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Daniel1908
Creator
Creator

Round Function does not work

Hello together, 

I am using the below formula, unfortunately the round function does not work. 

=Count({<Price={0},[ReturnLabel.]={"R*"},[Key]-={2578}>}
If(round(Price,0.01)<round([Price1],0.01),Material,null()))

Price is loaded in the script as below:

if(floor("Price1")-(floor("Price3"+"Price4"))=0,'1','0') as Price

Thanks for your help. 
Kind Regards
Daniel

13 Replies
Daniel1908
Creator
Creator
Author

That worked, thank you very much for your help. 

Kind Regards, 
Daniel

Daniel1908
Creator
Creator
Author

Hi,

I added Num("Price",'#.##0,00'), to the script, but the price is still shown as below. 

Daniel1908_0-1620635864940.png

 How do I get 1.998,25€?

Kind Regards,
Daniel

rubenmarin

Maybe column format is overwriting field format. Or just apply he same to the column or in the object itself.

What is that? a KPI, a table cell?

Daniel1908
Creator
Creator
Author

I added Num("Price",'#.##0,00') into the column. 

This works fine. 

Thanks for your help. 

Kind Regards, 
Daniel