Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Division Command

Hello,

i want to make a division like % in sql commands

suppose i want to have : 9/4 = (2,1)

what shoul i replace "sum( [Wit Quantity Second Unit] / [Factor] )" with?

Regards,

Mana

1 Solution

Accepted Solutions
sasiparupudi1
Master III
Master III

If you need a modulo operation , use the following

for real numbers

fmod([Wit Quantity Second Unit] ,[Factor])

for integers

mod([Wit Quantity Second Unit] ,[Factor])

View solution in original post

3 Replies
PrashantSangle

Hi,

What error you are getting for your expression??

try

sum( [Wit Quantity Second Unit]) /Sum( [Factor] )

or

[Wit Quantity Second Unit] / [Factor]

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
sasiparupudi1
Master III
Master III

If you need a modulo operation , use the following

for real numbers

fmod([Wit Quantity Second Unit] ,[Factor])

for integers

mod([Wit Quantity Second Unit] ,[Factor])

Not applicable
Author

thanks