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! It's time to submit your entry. Live now!
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! It's time to submit your entry.
| User | Count |
|---|---|
| 50 | |
| 43 | |
| 36 | |
| 33 | |
| 30 |
| User | Count |
|---|---|
| 138 | |
| 120 | |
| 60 | |
| 59 | |
| 56 |