Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello,
Need help please !
I need to get value of previous year depend year select with a slicer.
When I select 2021 I want to see value for 2020. how can I do that ?
I try to use SELECTEDVALUE : CALCULATE(sum(value), YEAR(date)=SELECTEDVALUE(Col1)-1)...
Thank You
Solved! Go to Solution.
Thank you ! that work with a Date not connected (I create a Date Table not connected).
Any solution with a connected Date ?
Hi, @freginier
As far as I’m concerned, you can just use one single table without a calendar table connected to achieve your requirement, you can create a measure like this:
Sum = CALCULATE(SUM('Table'[Amount]),FILTER(ALL('Table'),[Year]=SELECTEDVALUE('Table'[Year])-1))
Then you can create a card chart to place the measure like this:
And you can get what you want.
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@freginier Try:
CALCULATE(sum(value), ALL('Table'), YEAR(date)=SELECTEDVALUE(Col1)-1)
Thank you ! that work with a Date not connected (I create a Date Table not connected).
Any solution with a connected Date ?
Hi, @freginier
As far as I’m concerned, you can just use one single table without a calendar table connected to achieve your requirement, you can create a measure like this:
Sum = CALCULATE(SUM('Table'[Amount]),FILTER(ALL('Table'),[Year]=SELECTEDVALUE('Table'[Year])-1))
Then you can create a card chart to place the measure like this:
And you can get what you want.
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |