Skip to main content
Announcements
See why Qlik was named a Leader in the 2024 Gartner® Magic Quadrant™ for Data Integration Tools for the ninth year in a row: Get the report
cancel
Showing results for 
Search instead for 
Did you mean: 
MauriceLudo
Creator II
Creator II

Modulo function

Hi,

Please can you help me I can not identify the error

=mod(sum([Nombre de voix exprimés]), $(vQuotient_Electoral))

vQuotient_Electoral = num($(vNombre_Bulletins_Valide_Exprimés)/24,'00')

vNombre_Bulletins_Valide_Exprimés= $(vNombre_bulletins_exprimes) - ($(vBulletins_blancs)+$(vBulletins_nuls)+ $(vNombre_voix_3))

vBulletins_blancs=sum( {<[circonscription électorale] ={'Ville'}>} [Bulletins blancs])


Best regards

Maurice

3 Replies
Anil_Babu_Samineni

Can you try this in Text box and show the value what you getting? More help https://help.qlik.com/en-US/qlikview/November2017/Subsystems/Client/Content/ChartFunctions/GeneralNu...

=$(vQuotient_Electoral)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
MauriceLudo
Creator II
Creator II
Author

= $(vQuotient_Electoral) = 751

marcus_sommer

Both parameter of the mod-function must be an integer whereby a formatting with num won't be sufficient else you will need a round-function like round/ceil/floor to ensure that they are really an integer.

- Marcus