Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Get Quarter in a measure from month selection

Hi ,

I have my data coming in at month(Ex:Apr-15) and i have a date table with month,quarter and year.I am trying to get a measure at quarter level but it has to be dynamic based on a month selected by the end user.For example user would select Apr-15 and the measure should calculate the amount of Q2-15.

My measure for month is Sum({<scenario ={'ACTBUD'})>} amount),simple as month is a selected value,how do i get the quarter value based on the month selection.

Thanks.

1 Solution

Accepted Solutions
sunny_talwar

May be this"

Sum({scenario = {'ACTBUD'}, Quarter = p(Quarter), Month = >} amount)

Where

Quarter = p(Quarter) will include the whole quarter and

Month =  will ignore any selection in Month field

View solution in original post

3 Replies
sunny_talwar

May be this"

Sum({scenario = {'ACTBUD'}, Quarter = p(Quarter), Month = >} amount)

Where

Quarter = p(Quarter) will include the whole quarter and

Month =  will ignore any selection in Month field

Not applicable
Author

Thanks Sunny

sunny_talwar

No problem Sujan