Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

quarterly Case Help

Featured Replies

Hi everyone need a bit of help.

i have a summery report here is the case.

Case (

Month ( Date_Invoice ) < 4 ; Year ( Date_Invoice ) & " - Q1";

Month ( Date_Invoice ) < 7 ; Year ( Date_Invoice ) & " - Q2";

Month ( Date_Invoice ) < 9 ; Year ( Date_Invoice ) & " - Q3";

Month ( Date_Invoice ) ≤ 12 ; Year ( Date_Invoice ) & " - Q4"

)

the problem is when i get the report Q4 is way off. i have another summery report that i use which automatically takes 4 days from the invoice date here is the let function for this.

Let ( [

trudate = Date_Invoice - 4;

yr = Year (trudate);

mo = Right ("00" & Month (trudate); 2) ;

sortstring = yr & mo ] ;

GetAsNumber (sortstring) )

the report comes out great.

So i thought i could combine these 2 it does work but i get triple quarter results.

here is that attempt.

Let ( [

trudate = Date_Invoice - 4;

yr = Year (trudate);

mo = Right ("00" & Month (trudate); 2) ;

sortstring = yr & mo ] ;

GetAsNumber (sortstring) )

&

Case (

Month ( Date_Invoice ) < 4 ; Year ( Date_Invoice ) & " - Q1";

Month ( Date_Invoice ) < 7 ; Year ( Date_Invoice ) & " - Q2";

Month ( Date_Invoice ) < 9 ; Year ( Date_Invoice ) & " - Q3";

Month ( Date_Invoice ) ≤ 12 ; Year ( Date_Invoice ) & " - Q4"

)

any help would be great.

when i get the report Q4 is way off.

What exactly does "way off" mean?

  • Author

Total invoices quarter 2008 - Q1 = 350

Total invoices quarter 2008 - Q2 = 374

Total invoices quarter 2008 - Q3 = 262

Total invoices quarter 2008 - Q4 = 495

Quarter 1 and 2 are good 3 and 4 are way off.

these are counts of invoices as an example.

the work is done between the 1st and the 15th of each month the invoice are created on the 16th of each month

-----

the work is done between the 16th and the 31st of each month the invoice are created on the 1st of each month

this is where the problem is as the count goes into the next year

Edited by Guest

Try changing the 9 to 10?

BTW, you could make this a lot shorter:

Year ( Date_Invoice ) & " - Q" & Ceiling ( Month ( Date_Invoice ) / 3 )

  • Author

Thanks comment it works :thumbup: you always amaze me

i will play around with your calc as well later

  • Author

Well i am using your new calc.

Year ( Date_Invoice ) & " - Q" & Ceiling ( Month ( Date_Invoice ) / 3 )

and to get the "real" summary i created a new calculation.

DateAdjust = ( Date_Invoice-4 )

so the new full calc is this.

Year ( DateAdjust ) & " - Q" & Ceiling ( Month ( DateAdjust ) / 3 )

it works great thanks, is this the best way to do this.

Why not do it all at once =

Let (

d = Date_Invoice - 4

;

Year ( d ) & " - Q" & Ceiling ( Month ( d ) / 3 )

)

  • Author

very clever just when i am pleased with my efforts you find a better way.

:laugh2::wink2:

thanks

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.