BookmarkSubscribeRSS Feed
nonuoha
Calcite | Level 5

Hi,

 

I am developing a dashboard that require total paid and unpaid FTE in a fiscal year or calendar year quarter.  My dataset contains a row for each active employee in a month, meaning that an employee who is active in all three months of a quarter have three rows in the dataset.  My calculation only need one active row in a quarter not three.

 

Here's a sample dataset of three employees (A, B, C) each with FTE of 1 in the first quarter of 2021

 

Jan - A = 1, B = 1, C = 1

Feb - A = 1, B = 1, C = 1

Mar - B = 1, C = 1

 

Expected total paid FTE for the three employees in first quarter is 3 and not 8.

 

If there's a document that will assist me on this, please direct me to it.

 

Thank You!

 

1 REPLY 1
Sam_SAS
SAS Employee

Hello,

 

If you duplicate the date column and apply a Quarter format, you could visualize the data that way. You could also use this Quarter column in a time hierarchy like Year>Quarter>Date that the user could drill into.

 

You can also use the Period() operator in a calculated item with an expression like:

 

Period(_Sum_, 'Product Sale'n, _IgnoreAllTimeFrameFilters_,
'Transaction Date'n, _ByQuarter_)

This calculates the sum value for each quarter.

 

Let us know if that helps.

 

Thanks,

Sam

 

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 544 views
  • 1 like
  • 2 in conversation