cancel
Showing results for 
Search instead for 
Did you mean: 

Create New Calculated Measure

Former Member
0 Kudos

Dear Experts,

While trying to create a new calculated measure the following error message appears:

"No viable alternative at IF. Try rewriting the formula."

The formula calculates the YTD Sales and you can see the syntax below.

Thank toy very much for your time.

Best Regards.

Accepted Solutions (1)

Accepted Solutions (1)

varunanand
Contributor
0 Kudos

Hi Vassillis,

Can you try to select the if-then-else function  and plug in values rather than type it out or use "if" instead of "IF".

Thank you,

Varun Anand

Former Member
0 Kudos

I selected the if-then-else function and the following error appears:

0 Kudos

Hi,

Have you manually typed this formula? I don't think you can pass dimensions as parameters while creating a new calculated measure in Prepare room.

I suggest you try creating a new calculated dimension and then convert it into a measure.

The below formula worked for me, where i have tried creating a calculated dimension.

Regards,

Sukesh

Answers (0)