Forum Discussion
Gautier
9 years agoFrequent Visitor
Variable to store interval for the parallelperiod function
Hi All, I have a complex bridge formulat that dinamically compares the sales of the selected period with either the previous month, quarter or year depending on the selection. For instance is...
Anonymous
9 years agoNot applicable
Hi Gautier,
When using PARALLELPERIOD function, we are not able to store interval parameter in a variable. The value for interval in PARALLELPERIOD Function (DAX) must be one of the following: year, quarter, month.
In your scenario, you would need to use the original DAX formulas to dynamically compare the sales of the selected period.
Thanks,
Lydia Zhang