Jump to content

Carlos Flores

Members
  • Posts

    9
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Carlos Flores's Achievements

Rookie

Rookie (2/14)

  • Dedicated Rare
  • Week One Done
  • One Month Later
  • One Year In
  • First Post

Recent Badges

0

Reputation

  1. Attached you will find an Excel file with the Fiscal Week numbers and their start dates (Monday date of fiscal week) from 2015 to 2030. FW Numbers and Start Dates.xlsx
  2. Hi Gaia and Olivier, thank you for your feedback! Hi Olivier, yes, the Fiscal Week issue was the challenge # 1 that I identified above and wasn't sure how to approach it. Thanks for the attached example, but unfortunately, my company hasn't upgraded the Spotfire version to 12.5 let alone to 14.0 or 14.1, so I wasn't able to open your dxp file. Would it be possible to save the example as a 12.0.2 or lower version and share it so I can open it and check out your logic? Per your screenshot, the "Closed" columns match exactly the "Orders Closed During FW" green columns from my Excel file. Could you please also include in your example the script that I should use for the "Open Orders at End of FW" and "Delinquent Orders at End of FW" so they can also match the blue and red lines in the chart from my Excel file? Thank you again.
  3. Orders with Table and Chart.xlsx Hi Gaia, I have attached an Excel file with anonymized data and formulas, as well as a table and a chart that I want to create in Spotfire (cross table and combination chart). Thank you!
  4. Hi Gaia, thanks again for your feedback. I tried implementing your suggestion, but I still have a couple of issues. In your formulas, my understanding is that MondayDateOfFiscalWeek is a Calculated Field that is based on the Create Date of the order in each row. When I implement your three formulas from above, my thought is that these metrics shouldn't be static, they should be dynamic based on the date of the Monday of each week along the X or Horizontal Axis, so there shouldn't be Calculated Fields, they should be Custom Expressions for the Y-axis (Combination Chart) or for the Cell Values (Cross Table). Which brings me to my second issue, how should I reference the date of the Monday of each week along the X or Horizontal Axis. For other metrics, in which I don't have to actually use the date in the X or Horizontal Axis, I just use the expressions OVER (LastPeriods(NumberOfPeriods, [Axis.X])) or OVER (LastPeriods(NumberOfPeriods, [Axis.Columns])). These expressions will not work in this case since I don't know the number of periods going back, it's based actually on date comparisons. I hope I explained myself better. Please let me know if you need anything else to find a solution to these issues. Thanks!
  5. Hi Gaia, thank you for the information. I'm not sure what happened to my earlier reply, I've added more detail and reposted it. Let me share more details regarding the logic I'm trying to use to create the Spotfire report. Regarding the Fiscal Weeks, they start on a Monday and end on the Sunday. I'm using the simple Spotfire formula below to get the string format "FWyyyyww": "FW" & YearAndWeek([Create Date]) For the Monday Date of the Fiscal Week, I'm using the following Spotfire formula: CASE DAYOFWEEK([Create Date]) WHEN 0 THEN DATEADD('day', (-DAYOFWEEK([Create Date])) - 6, [Create Date]) ELSE DATEADD('day', (-DAYOFWEEK([Create Date])) + 1, [Create Date]) END For example, for today's date, January 18th, 2024, the FW value would be "FW202403" and the Monday Date of the Fiscal Week would be "1/15/2024". Below are the MS Excel formulas that I used to calculate the Closed, Open, and Delinquent orders: Closed: IF(TODAY() >= MondayDateOfFiscalWeek + 7, COUNTIFS(ShipDate >= MondayDateOfFiscalWeek, ShipDate < MondayDateOfFiscalWeek + 7), "") Open: IF(TODAY() >= MondayDateOfFiscalWeek + 7, SUM(COUNTIFS(CreateDate < MondayDateOfFiscalWeek + 7, ShipDate = ""), COUNTIFS(CreateDate < MondayDateOfFiscalWeek + 7, ShipDate >= MondayDateOfFiscalWeek + 7)), "") Delinquent: IF(TODAY() >= MondayDateOfFiscalWeek + 7, SUM(COUNTIFS(CreateDate < MondayDateOfFiscalWeek + 7, ShipDate = "", RequestDate < MondayDateOfFiscalWeek + 7), COUNTIFS(CreateDate < MondayDateOfFiscalWeek + 7, ShipDate >= MondayDateOfFiscalWeek, RequestDate < MondayDateOfFiscalWeek + 7)), "") The logic used for the above formulas is: The TODAY() >= MondayDateOfFiscalWeek + 7 criteria in the beginning of the formulas is just to show the calculation results for only the completed fiscal weeks year-to-date and not partial or future ones. Blanks should be shown for partial or future fiscal weeks. Closed: I want to know the number of orders that were shipped/closed during the current fiscal week, from Monday to Sunday, so the formula is counting the number of orders that have their Ship Date between the Monday of the fiscal week, including that Monday, and before the Monday of the next fiscal week. Open: It's an order that was created/opened before or during the current fiscal week and has not shipped/closed yet as of the end of the current fiscal week. The formula is adding two counters, the 1st one counts the number of orders that were opened before or during the current fiscal week (before the Monday of the next fiscal week) and still remain open to that day, have not been shipped. The 2nd one counts the orders that were also created before or during the current fiscal week and if they were shipped, had to be shipped on the Monday of the next fiscal week or beyond. It's like a snapshot of the open status at the end of the current fiscal week. Delinquent: The Request Date is when does the customer want to have the order shipped, it's basically fixed for now to 45 days after the order was created/opened, it's like a target ship date. It's an open order, same definition as above, but its Request Date has already past. It's basically an open order that is already late to be shipped based on its Request Date. Same as the Open Order formula, it's adding the same two counters, but including the clause for both that the Request Date should be less than the end of the current fiscal week (before the Monday of the next fiscal week). Same as above, it's a snapshot of the delinquent status at the end of the current fiscal week. The two challenges that I have are: 1) How can I create a Spotfire Combination Chart and Cross Table with data composing on two dates, Create Date and Ship Date, on the same axis (X-axis and Horizontal Axis, respectively). Also, if there are no Create or Ship dates at all for a particular fiscal week, how can I still show all 52 fiscal weeks in 2024 in both the Combination Chart and Cross Table? 2) In the expressions, how can I reference the Monday Date for the Fiscal Week (X-axis and Horizontal Axis) to be able to compare to the Create, Request, and Ship dates of all the orders for both the Combination Chart and Cross Table. For example, the Spotfire expressions for Closed, Open, and Delinquent orders should be: COUNT(CASE WHEN (([Ship Date] >= [MondayDateOfFiscalWeek]) AND ([Ship Date] < DATEADD('day', 7, [MondayDateOfFiscalWeek]))) THEN 1 ELSE NULL END) AS [Orders Closed During the Fiscal Week] COUNT(CASE WHEN (([Create Date] < DATEADD('day', 7, [MondayDateOfFiscalWeek])) AND (([Ship Date] IS NULL) OR ([Ship Date] >= DATEADD('day', 7, [MondayDateOfFiscalWeek])))) THEN 1 ELSE NULL END) AS [Open Orders at the End of the Fiscal Week] COUNT(CASE WHEN (([Create Date] < DATEADD('day', 7, [MondayDateOfFiscalWeek])) AND (([Ship Date] IS NULL) OR ([Ship Date] >= DATEADD('day', 7, [MondayDateOfFiscalWeek]))) AND ([Request Date] < DATEADD('day', 7, [MondayDateOfFiscalWeek]))) THEN 1 ELSE NULL END) AS [Delinquent Orders at the End of the Fiscal Week] but what should I use to reference [MondayDateOfFiscalWeek]? Please let me know if you need any additional information. Thanks again for your time.
  6. Hi Gaia, attached you will find a csv file with sample data. Thanks!
  7. Hi Gaia, attached you will find an Excel file with sample data and their definitions. It also contains a sample cross table and chart that I want to create with Spotfire. Please let me know if you need any more info. Thank you in advance for your assistance.
  8. I would like to show in a cross table by fiscal week the number of orders that were open at the beginning of the fiscal week (Monday) going back a year. My data consists of order number, create date, request date, and ship date. I would also like to show the number of delinquent open orders at the beginning of the same fiscal week (Monday). FW202301 FW202302 FW202303 Open 132 145 115 Delinquent 51 34 62
  9. Spotfire Analyst, regular desktop installed or portable versions, are not launching. Cursor just spins for 2 seconds and then nothing happens. There is no error message and no initial splash screen is displayed. Already tried uninstalling and reinstalling, both 7.11.0 and 10.3.1 versions, same problem.
×
×
  • Create New...