Formula based on List top level

I have a module with one of the dimension as a list 'Prod Type', with items HW1, HW2 and this list has a top level 'All'.

In one of the line items in this module i want to apply a formula like below :-

If<top level of Prod Type> then <Task1> else <Task2>.

At first i thought of using parent(item(list)) as for top level this will return blank, but the module is having other hierarchical lists as well for dimensions due to which this formulation is not working for me.

Is there any work around for this?

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Best Answers

  • Hi @JAbhi you can use variation of this logic to accomplish what toy need. You can use IF level = 0 THEN logic else other logic in your formula then.

    Calculating levels in a hierarchy for dashboard filtering

  • Hello JAbhi

    When you use an IF statement, the condition must return TRUE or FALSE.

    Thus, you will need to create a checking condition.

    IF

    ITEM('Prod Type') = 'Prod Type'.'All'

    THEN

    <Task 1>

    ELSE

    <Task 2>

    Then change the Summary method to Formula so it will apply at the All.

    Hope this helps!

    Derek Lim

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In