You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Can I Use the Mod Function in a Custom Measure Expression?

Summary:

I’d like to write an expression that returns a different value in leap years.

Although the "Mod" function is not listed in the Edit Measure window, it seems to work when used.

For example, expression like If(Mod(Year(GetTimePerod()),4)=0, 1, 0) is working.

In this case, can I use the Mod function even though it is not listed? Is it officially supported?

Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):

24D


Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!