Skip to main content

I am trying to create a calculation from "Value" Column depending on their Data type value.

Basically, it's Actual/Target.

I tried using the below formula but it just displays null values.

 

(if [Data Type]='Actual' then [Value] end)/(if [Data Type]='Target' then [Value]end))

 

I'd like to insert the result as a row under Target (Red arrow in the picture).

Appreciate the help!How to create a calculation from a single field value based on IF condition?

2 answers
  1. Aug 11, 2022, 4:00 AM

    @Ivee Pendo​ can you try like below?

    Sum(if [Data Type]='Actual' then [Value] end)

    /

    Sum(if [Data Type]='Target' then [Value]end)

    Also can you share a sample .twbx file to have a closer look? May be you might have to use Some table calcs here to get this value under your actual/target.

0/9000