on 01-06-2021 5:20 PM
Hi All, Need quick help in calculating previous quarter from a calendar quarter field within the report.
Calendar quarter = 2020-Q1 ; 2020-Q2 ; 2020-Q3 and so on.
Users wants to filter on "Previous Quarter" i.e. Current Quarter - 1
Let me know if there is a function within WEBI or how to calculate on reporting end without a predefined filter in Universe.
Thanks,
You can get the quarter with Quarter(date).
ex.
prevQ: =Quarter(CurrentDate()) - 1
then you can put in your formula like
searchQ: ="2020-Q" + [prevQ]
..
of course, you need to be clear about whether the first quarter is 1 then the previous Quarter is Q4 from last year.
...
I hope this gives you an idea how to do it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
add variable:
status: if ([Calendar quarter] = [SearchQ]) then 1 else 0
then filter your table with "status equal to 1"
Hi Ayman,
If I have Month in the report and wanted to schedule the report on a monthly basis automatically. How do I do that on report end without pre-defined filter in the universe ?
Month = January . For previous month, do we need to write a if then else statement to specify the number first ? COuld you please explain?
Thanks a lot.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.