SAS Visual Analytics

Dashboards, reports, BI and analytics - all from a single interface.
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-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

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
  • 771 views
  • 1 like
  • 2 in conversation