I'm trying to create a saved search in Netsuite that shows only items whose 1st time it was ever received was today - filter

I want to filter my search so it shows only items whose 1st item receipt is today. So, I can create an alert for whenever we receive a new product in which is a lot of different parts so doing it sku by sku would be too time consuming.
I created a search and summarized it on minimum date but I can't figure out how to just show me items whose 1st time being received into our system is today.

Create your saved search on items
On the results tab
add Transaction Date. Set its summary type to Minimum
Group by item name. You can sum and min/max other columns as needed
On the criteria tab:
add transaction type is 'Item Receipt'
click the Summary subtab.
add a criteria for minimum transaction date is today.
When you run this you'll see items whose first receipt is today.

Here are the steps in creating the Item Saved Search:
Navigate to List> Searches> Saved Searches > New
Select Search Type = Item
Navigate to Criteria tab > Standard subtab > Filter column and add the following:
Transaction Fields… > Type- is Item Receipt
Type - is any of Assembly/Bill of Materials, Inventory Item
Transaction Fields… > Date and Summary Type: Minimum
Navigate to Results tab > Sort By: Name
Navigate to Results tab > Columns subtab > Field column and add the following fields:
Name and Summary Type: Group
Transaction Fields… > Date and Summary Type: Minimum
Hit Save & Run button
Thanks.

Related

Data Studio Table Chart is not sorting correctly

I have a working chart of podcast episodes by download count in a query. That query is used to create a table chart in Data Studio. The file name formats are as follows: 2020/889-Jan-16-2020-DMP.mp3
Well Episode 1000 isn't showing at the top now in the sorting order. Because it thinks 1000 is less than 999. See table below:
2020/999-Jun-24-2020-DMP.mp3
2020/998-Jun-23-2020-DMP.mp3
2020/997-Jun-22-2020-DMP.mp3
2020/996-Jun-21-2020-DMP.mp3
2020/995-Jun-18-2020-DMP.mp3
2020/994-Jun-17-2020-DMP.mp3
2020/993-Jun-16-2020-DMP.mp3
continuing ...
2020/886-Jan-13-2019-DMP.mp3
2020/885-Jan-12-2019-DMP.mp3
2020/884-Jan-9-2019-DMP.mp3
2020/883-Jan-8-2019-DMP.mp3
2020/882-Jan-7-2019-DMP.mp3
2020/881-Jan-6-2019-DMP.mp3
2020/880-Jan-5-2019-DMP.mp3
2020/879-Jan-2-2019-DMP.mp3
2020/1001-Jun-30-2020-DMP.mp3 <-------Should be at the top of the table
2020/1000-Jun-29-2020-DMP.mp3 <-------Should be at the top of the table
2019/878-Dec-19-2019-DMP.mp3
2019/877-Dec-18-2019-DMP.mp3
2019/876-Dec-17-2019-DMP.mp3
Let me know if that makes sense...
1) REGEXP_EXTRACT
It can be achieved by adding the REGEXP_EXTRACT Calculated Field below as the Sort field and setting the order to Descending (The RegEx extracts the respective number component, for example 1001):
AVG(CAST(REGEXP_EXTRACT(Field, "^\\d+/(\\d+)-") AS NUMBER ) )
Google Data Studio Report and a GIF to elaborate:
2) Troubleshooting Calculated Fields (Invalid Formula)
Adding a section on general troubleshooting for Calculated Fields based on an Earlier Post on the Google Data Studio Forum:
Field Editing: Have a look at whether Field Editing is Enabled (Although it shouldn't affect creating Data Source Calculated fields);
Refresh: Refresh the Data Source Fields as well as a Fields in the Report;
Page Reload: Shortcut - F5;
Hard Page Reload: Shortcut - Ctrl + F5;
Chart-level Calculated Field: Double check whether using a Chart-level Calculated Field instead of a Data Source-level Calculated Field, resolves the issue.
I found that doing this worked too - sort date granularity by Year Week
Sort date granularity by Year Week

how to create and use calender filter in Power BI

I am working on a power BI report where I need to create a calendar type filter. The filter needs to use a condition as this needs to compare two columns of a report. if a user select the date from calendar, the report should return the data for "selected date>=adddate and selected date<=drop date"
I am aware of adding the date filter using the slicer. but the filter will not be a calendar and also we cannot add the condition I have mentioned above
I need to add a new filter as Report date(calendar type). When user select any date from the calendar, result should be matching with the condition for two columns in the report "selected date>=adddate and selected date<=drop date". Please help me with the step by step process as I am very new to Power BI. Attached the view of my report

Gherkin, how to write a scenario where have optional given steps?

I'm writing a simple add item scenario. This item have required fields (name, number, date) Also that item have optional fields (category, description). how i can specify the fields:
scenario: add item
given name
and number
and date
but category is not null
and description is no null
then save item
Is this right?
I would split this into multipal scenarios, as each scenario should test one thing.
Also you should always have a When step. Given is a precondition and not always needed, When is an action and Then is the expected outcome of that action. Without a When step you are saying you have an expected outcome of doing nothing?
I would write the Feature File to be something like the following:
Feature: Add Item
As a stock control manager
I want to be able to add items to an inventory
So that I have a catalogue of al items in stock
Business Rules:
- Name, number and date are mandatory data
- category and description are optional
Sceanrio: Add item witout category
When I add an item without a category
Then the Item will be saved
Sceanrio: Add item without descritpion
When I add an item without a descritpion
Then the Item will be saved
Sceanrio: Add item without name
When I add an item without a name
Then the item will not be saved
And I will be informed the name is maditory
Sceanrio: Add item without number
When I add an item without a number
Then the item will not be saved
And I will be informed the number is maditory
Sceanrio: Add item without date
When I add an item without a date
Then the item will not be saved
And I will be informed the date is maditory

Crystal Reports group sorting

I have flight data records for each user. The table below shows an example for one user id. I need to group by user_id (show only one row for each user_id) that has the latest flight_date.
When I added grouping by user_id, the result report displays the right flight date, but the rest of the fields come from the last row for each user (highlighted fields).How do I make it show the entire row with the latest date (4th row in my example)? Thank you!
If you only want to see the most recent record, per userID, based on the flightdate, there are a few options. The most efficient way is to use a custom SQL command, but Crystal can do it by retrieving all of the records, and then suppressing the records you don't want to see.
1.Group the report by USERID (Report > Group Expert > Add the USERID field to the group section)
2. Sort the records by FlightDate ( Report > Sort Expert > Add FlightDate and select Descending NOTE: if FlightDate is not a date, we will need to create a formula to convert it into a date first, otherwise Crystal will treat it as a string and 12/2015 will be higher than 1/2016 (for example)
3.Create a running total to count the number of records within each group (This is how we will tell Crystal to suppress the records we don't want)
--Right click "running Total" on the right hand side, select New. Name it whatever you want; under Field To Summarize add FlightDate, change summary to COUNT
Leave Evaluate as "For Each Record"
Under Reset, select On Change of Group and select the group for USERID
The report should look like this
In the Section Expert, select Details and click the formula button next to "Suppress"
Enter the formula {#RecountCount} > 1 (Or whatever name your running total has)
Now you should only see one record for each user

Get statistic of record counts from FileMaker using AppleScript

Can somebody advise whether there's a good built-in way (= AppleScript command) to pull out statistics for a DB:
I need to count the number of occurrences of a string in a particular field over all records.
E.g. for a record that has
Name
Phone
Town
the script would return how many records exist with identical towns.
Step 1 - Create a relationship.
- File > Manage Database > Define Database
- Relationships tab
- Duplicate your table occurance and name it (I used related_towns)
- Drag a relationship between the two from town to town
- Click OK.
Step 2 - Create a calculated field that counts the instances of the related (duplicative) town name.
File > Manage Database > Define Database
Fields Tab
Type in the name of your new field (I used number_of_related_towns) at the bottom of the screen
Select "Calculation" from the field type list
Count the times that the town appears in your relationship with this calcuation:
Be sure that "Evaluate this calculation in the context of" is set to the name of your base table (what your layout is based on). Replace related_towns with whatever you named your new table occurance.
Step 3 - Write a script to display your data.
Scripts > Manage Scripts
New button (bottom left)
Rebuild the screenshot below. I added comments, which hopefully explain?
Let me know if you have any questions.
I would do this in FileMaker. It is built for exactly this. Do you know how to do it in FM?

Resources