Jump to content
We've recently updated our Privacy Statement, available here ×

Bucketing Ages using a Calculated Measure


vachon

Recommended Posts

I'm trying to get a caluclated measure to bucket ages (e.g. 13-17, 18-24, etc).  I get the buckets to work as they return true or false when drilling into the crosstab, yet the values seem far off and the values across buckets are identical.

 

I'm guessing its not counting the number of boolean "true", but all booleans regardless of their value.  Anyone gotten this to work?

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I have tried many many options (including putting it in a derived table, but then I cant have a join), this is the current one:

(Year(Today(0)) - "yob" >= 13) AND (Year(Today(0)) - "yob" <= 17)

Important to note, our data team actually has YOB as a int, not as a datetime or timestamp

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...