Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Based on a field parameter :
Any suggestions help ?
Solved! Go to Solution.
Hi @uj91 ,
For this you need to combine your Field Parameters with Calculation group that will have the calculation for each of the lines.
Just create a new Calculation Group with two values:
Current Year = SELECTEDMEASURE()
Previous Year =CALCULATE (SELECTEDMEASURE(), DATEADD(Calendar[Date], -1, Year))
If you use this on the legend of your chart you should be able to get the expected result.
See an example attached.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi,
Share the download link of the PBI file.
Hi @uj91 ,
For this you need to combine your Field Parameters with Calculation group that will have the calculation for each of the lines.
Just create a new Calculation Group with two values:
Current Year = SELECTEDMEASURE()
Previous Year =CALCULATE (SELECTEDMEASURE(), DATEADD(Calendar[Date], -1, Year))
If you use this on the legend of your chart you should be able to get the expected result.
See an example attached.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @uj91 ,
We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. And, if you have any further query do let us know.
Regards,
Dinesh
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |