Help solve the problem. It is impossible to produce the amount of the grouped fields. I can only add up all the fields. What I want to get the show on the link below.
http://habrastorage.org/files/99c/5df/f1f/99c5dff1f34e4d1a9e51e3769a65b18f.png
PS Sorry for my English, I use translate.google.
In order to help with something like this, it would be good to see a code snippet which you are using. This would give an idea of where the data is coming from and what format the data is.
Related
I'm attempting to understand what exactly date-fns is doing when using parseISO() as it seems to be adding 2 hours to the time that I have saved in the database. The data is as follows:
ISO Date/Time saved in database: 2022-09-20T19:52:53.000Z
Using format(parseISO(2022-09-20T19:52:53.000Z), "HH:mm:ss") I get this: 21:52:53 hrs
Somewhere along the line 2 hours are being added and unsure as to the cause. A comment left by Monash Joshi in (stackoverflow issue) hints towards an explanation but not really a solution. Want I want to show is just the parsed date/time value as it is. Would it thus make sense to manipulate the string that I receive from the database myself?
Thanks in advance for your help! And let me know if you need any further information.
Hi guys,
I hope you all are doing well. I am having this issue, and I hope you guys can help me out.
From the photos attached, I have created two subqueries. "First output" contains the variables with all the criteria. "Second output" contains only seven criteria. My hope is when adding (PRE + PR), it will return 132.77, 1021.59, and 8.03 respectively from "PRE" instead of NULLS. (See combined Output).
Can someone please tell me what I am doing wrong from the Combined Script?
So this is the same problem I answered yesterday.
ZEROIFNULL(PR) + ZEROIFNULL(PRE)
Yesterdays answer, with full explanation of what is happening.
I'm New to salesforce reporting so i'm sure what i'm trying to get might be easy, but i'm not getting the results I want.
Basically I want to be able to extract the HOUR from a date/time field.
I have tried this:
VALUE(MID (TEXT (CREATED_DATE:UNIQUE), 12, 2))
But it gives me an '-' as an output rather then the actual hour.
Any idea as to what I might be doing wrong here?
Thank you!
My problem is that i have documents containing a numeric value and a unit like this:
weight:100g
weight:1000kg
And i want to make querys like this:
weight:[5g TO 100KG]
Of course this doent work as easy as it sounds, the values are saved as strings. I did some research and came up with this https://dzone.com/articles/build-a-custom-solr-filter-to-handle-unit-conversions.
This worked out pretty well, i can search for:
weight:100000g and get results containing weight:100kg, nice. But i cant figure out how to extend this, to make a range-search possible.
Thanks for help, Patrick
I am a newbie and I need little help, I have 2 picklists and based on the selection of the values of picklists I need to generate a dynamic calculated field on page. I know it is not possible using formula custom field, if it can be done using apex can anyone suggest me how with some sample code? Thanks.
It'll depend on how many combinations you have in your two picklsits. If they're up to 5 each (for instance) you could do this in a formula field quite easily with a nested IF or a CASE statement if you concatenate the values together. Something like this:
CASE( Contact_Type__c & LeadSource , 'CustomerCampaign', 'Customer originated from a campaign, 'SupplierCampaign', 'Supplier originated form a campaign',...,else_result)
If there are lots or combinations/permutations then a trigger might be a better solution.