I created a new Formula field called "Short License Number" that will contain the following value:
In case "License Number" field is not empty, "Short License Number" field will contain "License Number" first left character. For example: "License Number" = 123456789 "Short License Number" = 1
I tried this and it's not working
IF( ( ISBLANK(LicenseNumber__c ),true, LEFT(LicenseNumber__c , 1))
this is returned to "Short License Number" field
I Want to know what I did wrong?
Thanks, Liraz
Your formula looks wrong. Since u want to put the first char/number in case that the LicenseNumber__c field is NOT empty u have to do the following:
IF( NOT(ISBLANK(LicenseNumber__c)), VALUE(LEFT(LicenseNumber__c, 1)), VALUE(NULL))
In my case new created formula field is an Number formula field and the LicenseNumber__c field is a text field. Thats why I use the VALUE expression.
Hope this helps
Related
I have the below array which has been working perfectly. It's comparing values from another sheet and if they match what is on this sheet , then it shows verified, otherwise it shows unverified.
=ArrayFormula(iferror(if(row(T:T)=1, "Certification Status",
if(A:A="","",
if(lower(vlookup(T:T,importrange("abc123","Course Completion!E:H"),2,0))
&"-"&lower(vlookup(T:T,importrange("abc123","Course Completion!E:H"),3,0))
&"-"&to_date(int(vlookup(T:T,importrange("abc123","Course Completion!E:H"),4,0)))=
lower(I:I)&"-"&lower(U:U)&"-"&F:F,"Verified","Unverified")))))
I needed to add a condition to evaluate if a row value contains "SIM" and the Attendance status equals "No" or Blank then show "Unverified", in addition to the other checks. If the row value does not contain "SIM" then use the original formula shown first. However when V:V= SIM and the attendance status equals no or blank, it still shows verified.
What did I do wrong here?
=ArrayFormula(iferror(if(row(T:T)=1, "Certification Status",
if(A:A="","",
if(and((U:U="SIM"),(V:V<>"yes"),"Unverified",
if(lower(vlookup(T:T,importrange("1A7U7OY8q4M5zCI3WLrwESMwV_471D_4kF71v30yA438","Course Completion (THINKIFIC)!E:H"),2,0))
&"-"&lower(vlookup(T:T,importrange("1A7U7OY8q4M5zCI3WLrwESMwV_471D_4kF71v30yA438","Course Completion (THINKIFIC)!E:H"),3,0))
&"-"&to_date(int(vlookup(T:T,importrange("1A7U7OY8q4M5zCI3WLrwESMwV_471D_4kF71v30yA438","Course Completion (THINKIFIC)!E:H"),4,0)))=
lower(I:I)&"-"&lower(U:U)&"-"&F:F,"Verified","Unverified"))))))
AND & OR are not supported under ARRAYFORMULA. use * & +
for OR:
if((V:V="SIM")+(lower(V:V)="yes")
if you need AND you cant have the same column in both cases so this is just example if 2nd column is W and not V:
if((V:V="SIM")*(lower(W:W)="yes")
I want to auto-populate the Opportunity Name field based on the data entered during Opp creation.
Field A = Picklist
Field B = Picklist
Field C = Lookup (Account Name)
Logic: Opp Name = (Field A (first letter of Field A) + Field B + Field C)
What I have tried:
Created a Workflow rule to update the Name field once the record is created. Below is the Logic:
Opp Name: Field A&"-"&Field B&"-"&Field C
I am not sure how to display only the first letter of Field A. If Field A has a value "SFDC", I need only 'S' to be displayed.
Find LEFT on this page: https://help.salesforce.com/articleView?id=customize_functions_i_z.htm&type=5#LEFT (or in the formula builder you have help links too).
Since these are picklists it might have to be something like
LEFT(TEXT(FieldA__c), 1) & " - " & TEXT(FieldB__c) & " - " & Account.Name
You might want to wrap it in another LEFT(..., 120) if the whole thing can grow long (or whatever is the max on Opportunity.Name)
I am new to Sql Server Reporting Services. I have created my following report.
I want to remove/hide rows of Brand Total whenever it does not exist in Brand list. Like in following picture i want to remove/hide "Ethnic Total" whereas "Ethnic" Brand does not exist in "Sample Store 1".
Similary i want to reomve/hide rows of "Outfitters Total" and "Junior Total" from Section Two whereas "Outfitters" and "Junior" don't exist in "Sample Store 2".
This is the structure of my report.
And following is the expression for Net Qty of a Single Brand total.
=Sum(IIf(Fields!Brand.Value = "Outfitters", Fields!Quantity.Value, Nothing))
What should i do?
What condition should i write in expression for Row Visibility?
Thanks in Advance for help.
i hope the below comments you are looking for.
Step 1: select that particular row (Outfitlers Total, Junior Total,Ethnic Total,Store Total)
One at a time and right click and select Row Visibility Option.
Step 2 :
A Dialog box appears with 3 options
1.Show
2.Hide
3. Show or hide based on expression
Select option 3 and copy the below expression in the Expression dialog box.
=iif((Sum(IIf(Fields!Brand.Value = "Outfitters", Fields!Quantity.Value, Nothing))) is nothing ,True,False)
i hope So this will be helpful.
=IIF(Fields!TotalRems.Value=0, True, False)
Replace TotalRems with your correct field name
You can do this way:
=IIF(Fields!YourField.Value like "YourValue",false,true)
Replace "YourField" with your own one and also change "YourValue" to whatever you need.
NB, " " or '' not treated as NOTHING,
For more explanation:
SSRS – Hide Rows in a Group based on a Value
another possibility for the hiding expression is, to use a text box reference. In place of "Textbox1" in the expression below, you can use the name of the text box, which is in the crossing of column "Net Qty" and row "Ethnic Total" (or one of the other total rows you mentioned)
=Iif(IsNothing(ReportItems!Textbox1.Value),True,False)
I have picklist with two values(A,B) and a custom field. If Values chosen other than B then the custom field should not be entered. If Value B is chosen then the custom field can be entered. What function to use. ? I m quite confused. Help Please
Something like this? I've used standard fields from Account, Rating is a picklist, ShippingCountry is text field.
Validation criteria:
ISPICKVAL(Rating, "Hot") && ISBLANK(ShippingCountry) ||
NOT(ISPICKVAL(Rating, "Hot")) && NOT(ISBLANK(ShippingCountry))
Error message:
Shipping Country is mandatory when Rating is "Hot". Please either
change the rating or clear the value in the Shipping Country field.
The condition is basically a XNOR if you're familiar with logic, simplification etc ;) But we don't have a XOR function in the functions reference.
You could also consider splitting it into 2 separate validation rules - this will let you write cleaner instructions what the user has to do "you've picked B -> fill this value!; you've picked A -> clear this value"
Using the example eyescream gave, you can further reduce the size of the condition like this:
ISPICKVAL( Rating, "Hot" ) = ISBLANK( ShippingCountry )
That is (spelled out):
if Rating is Hot and ShippingCountry is blank, then both conditions will be TRUE and equal with each other so the validation will activate and display the error
AND
if Rating is NOT Hot and Shippingcountry is NOT blank, then both conditions will be FALSE but equal with each other so the validation will activate and display the error
That type of shorter XOR expression might be handy when you have to specify a similar criteria for many fields, such as a validation that says "Shipping street, city, state and zip must be either all entered or all blank".
In such case you would enter:
ISBLANK( ShippingStreet ) != ISBLANK( ShippingCity )
|| ISBLANK( ShippingCity ) != ISBLANK( ShippingState )
|| ISBLANK( ShippingState ) != ISBLANK( ShippingPostalCode )
Notice the transitivity between each of the conditions linking the state of street to city all the way to postal code.
The expression basically means both conditions spelled out below:
if street is blank, then city should be blank and if city is blank, then state should be blank, and if state is blank, then postal code should be blank
AND
if street is NOT blank, then city should NOT be blank and if city is NOT blank, then state should NOT be blank, and if state is NOT blank, then postal code should NOT be blank
does anyone knows how to use extjs's groupingview and group by the first letter of the particular field indicated by the groupingStore?
For instance:
group 'l':
record with field 'lion'
record with field 'leopard'
group 'g':
record with field 'giraffe'
ok i got it. Basically I need to edit the grid column's groupRenderer :
groupRenderer:function(v,u,r,rowIndex,colIndex,js){
return r.get('fieldname').charAt(0);
},