Skip to main content
Announcements
The way to achieve your own success is the willingness to help somebody else. Go for it!
cancel
Showing results for 
Search instead for 
Did you mean: 
Riccardo
Partner - Creator III
Partner - Creator III

Age Range runtime in a chart

Hello,

I want to calculate the Customer Age runtime in a chart

"Max(Year)-[Year Customer]"

 

I have a range table:

Range Start, Range End, Range Result

0,25,<25

26,50,26-50

etc

 

Dim: if(Max(Year)-[Year Customer]<=[Range Start] and Max(Year)-[Year Customer] >= [Range End],[Range Result])

Measure: Count(Customer)

 

Is this correct? I have to use an aggr?

Riccardo Schillaci
BI Analyst
Datawarehouse & Business Intelligence
Labels (1)
2 Replies
Usama
Creator
Creator

Hi,

What expected output you want to show?

Thanks

From Nothing - To Something - To Everything
Riccardo
Partner - Creator III
Partner - Creator III
Author

Count of Customers, grouped by Age Range.

 

(ps. I can't use intervalmatch on script, 'cause I have to calculate the Customers Age on runtime)

Riccardo Schillaci
BI Analyst
Datawarehouse & Business Intelligence