Forum Discussion
Anonymous
6 years agoNot applicable
Dynamic Filter of Same Column
Hi, I need to calculate a formula wherein if I select Q1 2020 it must get divided by Q1 2019 ( previous year). The column has values like Q12020, Q22020, Q32020 and so on. Below is an idea how ...
- 6 years ago
hi Anonymous
This works on my side.
and here is my sample pbix file, please try it.
Could you please share your sample pbix file, there should be something wrong in other.
Regards,
Lin
Anonymous
6 years agoNot applicable
Thanks for the prompt response but I have already taken care of the space. I am getting infinity value using this formula.
MFelix
Super User
6 years agoCan you share the formula you are using please.
On the test I have made everything was working properly.
- Anonymous6 years agoNot applicableVAR Year_Selected =RIGHT ( SELECTEDVALUE ( 'PowerBI'[Qtr_FY] ), 4 )VAR Quarter_Selected =LEFT ( SELECTEDVALUE ( 'PowerBI'[Qtr_FY] ), 3 )RETURNCALCULATE (SUM ( 'PowerBI'[MRR] ),FILTER (ALL ( 'PowerBI'[Qtr_FY] ),'PowerBI'[Qtr_FY] = Quarter_Selected & ( Year_Selected-2)))
- v-lili6-msft6 years ago
Community Support
hi Anonymous
This works on my side.
and here is my sample pbix file, please try it.
Could you please share your sample pbix file, there should be something wrong in other.
Regards,
Lin
- Anonymous6 years agoNot applicable
One question - the same formula is not working in my PBI because the column Qtr_FY is a calculated one not just the imported column?