Skip to main content
Suren H (W&B) ha fatto una domanda in #Reports & Dashboards
I have a summary level formula column at all summary levels in a report.

 

I want to use an IF statement that matches a username (which is grouped) with a string and then based on a boolean output return specific summary calculations. However this doesn't seem to work. Formula is accepted as correct but I always get the FALSE return calculated, which seems to mean that my if statement isn't set up correctly or maybe I am not allowed to do that in a Summary Level Formula.

 

This is what my formula looks like, and "Activity.Activity__c:SUM * 25" is always executed even if the username matches.

 

IF(Activity.User__c = "Username", Activity.Activity__c:SUM, Activity.Activity__c:SUM * 25)

 

Anything I may be doing wrong here?
3 risposte
  1. Eric Praud (Activ8 Solar Energies) Forum Ambassador
    18 ago 2020, 11:07
    Hi Suren,

     

    Try to use the ":UNIQUE" function:

    IF(Activity.User__c:UNIQUE = "Username", Activity.Activity__c:SUM, Activity.Activity__c:SUM * 25)

     

    If this doesn't work, you may be able to use  a row level formula and give numbers to users, for instance:

    CASE(Activity.User__c,"XXX",1,"YYY",2,"ZZZ",3,0)

     

    Your summary formula could then be:

    CASE(Formula:Avg,1,Foormula1,2,Formula2, 3, Formula 3, NULL)

     

     
0/9000