Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

How to write formula in DV to get similar like sumif function in excel?

Received Response
132
Views
4
Comments
Rank 3 - Community Apprentice

Summary

How to write formula in DV to get similar like sumif function in excel?

Content

Hello,

 

Can anyone help me to write sumif formula in DV to get the require output? Not able to get the right syntax/formula in calculation option? Thank you

Welcome!

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

Answers

  • case when 1=2 then SUM(imagination) else sum(sales) end

  • Rank 3 - Community Apprentice

    I am still not sure on this formula...I am looking for example ..there are 1000 ID's against each ID there will be value and in these ID's there are lot of repetitive in nature hence, I should get the sum total for ID....if 10 same ID's then I should get the sum of all 10 ID's in all ten rows....in below table result column exactly what I need it...

     

    IDAmountResult
    1100600
    1200600
    1300600
    3900900
    4250250
    59001750
    58501750
    7220430
    7210430

    Thanks for your time....

  • Would have helped to have that information right from the start.

    SUM(x by y) would be an appropriate solution.

  • Rank 4 - Community Specialist

    Hi there,

    I think  you need to use a "SUM by" function to get this output e.g. I used SUM(Amount by ID) as a calculation  to get the required output (as seen in screenshot)Tester.JPG

Welcome!

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