How to Dynamically update formula?
I am trying to create a formula that dynamically changes with the dashboard filter that I set.
The formula is:
(
([Total count], [@Months in Date Range])
/
([Total count], [@Previous 12 Months])
) - 1
The Previous 12 months is the previous 12 months that I select from the dashboard filter so say the range is from
2024-09 to 2023-10, then the previous 12 months is 2023-09 to 2022-10.
DRay Liliia_DevX do you know how to do this?
Rafael Ferreira
Posted 1 year ago·Last reply 1 year ago
6 comments
Rafael Ferreira
OP1 year ago([Total Count], PREV(Months in Date Range],12)) Did the trick!
Ido Darnell
·1 year agoMikeGre that would work, but then the period in question which is this year vs last year would be fixed in the formula.
Using the Filtered Measure plugin, the dates in question, for both the numerator and denominator, will be dynamic based off of the filters selection, respectively
Rafael Ferreira
OP1 year agoThe problem with this solution Ido_QBeeQ is that this only works with Elasticubes. I am working with a live model, and MikeGre , this solution sounds like it would work because even if they are picking months, they are always looking at the year range, but when applied, I get no data. Will have to look further into this.
Ido Darnell
·1 year agoAstroraf I think it should still work, will check and let you know, happy to hear you solved your challenge!
Michalis Gregoriou
·1 year agoAstroraf why don't you try the already existing PASTYEAR formula?
Should be like this:
(
([Total count])
/
(PASTYEAR([Total count]))
) - 1
Ido Darnell
·1 year ago · EditedHey Astroraf
Ido from QBeeQ here,
I believe what you're looking for is the (free) Filtered Measure plugin
Also see this post which dives deeper into it's usage
LMK if you'd like to meet to review,
ido@qbeeq.io
We're always here to help
Ido from QBeeQ
QBeeQ - Gold Sisense Partner
info@qbeeq.io
Feel free to subscribe to our newsletter to stay up to date with the latest QBeeQ news!