Forum Discussion
Calculating total per quarter for specified age
king98027 So maybe something like:
Assets 365 =
VAR __Table = FILTER(ALLSELECTED('Table'), [Asset's Age] <= 365)
VAR __Result = COUNTROWS(__Table)
Assets 365 to 2555
VAR __Table = FILTER(ALLSELECTED('Table'), [Asset's Age] > 365 && <= 2555)
VAR __Result = COUNTROWS(__Table)
??
Greg_Deckler Thanks for the reply! I tried using the first measure - looks like this was basically counting up the total number of assets that are currently 365 days old or less. What I was hoping for, with a quarter/year filter was to understand how many assets meet this criteria at each given quarter from the past.
Here is the exact measure that was created:
Assets 365 =
VAR __Table = FILTER(ALLSELECTED('Customer Assets'), [Asset's Age] <= 365)
VAR __Result = COUNTROWS(__Table)
RETURN
__Result
- Greg_Deckler2 years ago
Community Champion
king98027 So your Asset's Age column denotes the current age as of, for example "today", is that correct? If that is the case, then you could use the end of the quarter date and the asset's created on date to do a calculation of the asset age at the end of the quarter. Are your quarters calendar based or fiscal?
- king980272 years agoFrequent Visitor
Greg_Deckler That is correct. The asset age would be based off today's date. Quarters are calendar based. Unclear about how to go forth.