Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

FM - Calc to Get a Fiscal Year Text

Posted on 2011-03-04
6
Medium Priority
?
625 Views
Last Modified: 2012-05-11
I used the below formula to create a text field with the fiscal year (I was given a year end date to the fiscal year).  Only problem is that 10-11 reads as .1-11 because I thought the round function would force .1 to read as .10.  Any suggestions?

Right (
Round (
(Right ( GetAsNumber ( FiscalYrEnd_Txt );2) -1) / 100
; 2)
; 2)

& "-" & Right (FiscalYrEnd_Txt; 2)
0
Comment
Question by:rvfowler2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 25

Expert Comment

by:Will Loving
ID: 35038778
so "10-11" means October 11 is the last day of the fiscal year or is that supposed to mean the 2010-2011 fiscal year?
0
 
LVL 25

Expert Comment

by:Will Loving
ID: 35038782
What does the input text for FiscalYrEnd_Txt look like?
0
 
LVL 2

Author Comment

by:rvfowler2
ID: 35038870
10-11 is the Fiscal year 2010-11 (I'm trying to save space in the portal by using 2-digit years).  The text for FiscalYerEnd/Txt is just a 4-digit year.  I'm guessing that I've made this too complicated and overthought it.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 25

Accepted Solution

by:
Will Loving earned 2000 total points
ID: 35038922
Right ( ( FiscalYrEnd_Txt -1 ) ; 2 ) & "-" & Right (FiscalYrEnd_Txt; 2)

Both FiscalYrEnd_Txt and the calc fields are text.
0
 
LVL 25

Expert Comment

by:Will Loving
ID: 35038960
I think perhaps your confusion might be around doing math with numbers that originate in a text field. In general, you can do math within a calculation that has a text result, even when the value originates in a text field. Sometimes such as when doing greater than and less than comparisons where one or more values are originating from text fields, it's necessary to surround the value with GetAsNumber() in order for the comparison to work.
0
 
LVL 2

Author Closing Comment

by:rvfowler2
ID: 35039040
Yes, I didn't now that you could do any math with text.  Calcs are my weakness and need to spend more time on it.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Pop up windows can be a useful feature of any Filemaker database.  Though best used sparingly, they can be employed in a multitude of different ways, for example;  as a splash screen at login, during scripted processes to control user input, as pick…
Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question