Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I would like to ask how to make a visual where lines number be equal selected years number for example, I select 2021, 2022 then two lines appear in visual. Lines is described by measure. So how I could adapt my measure?
Here is a visual:
Measure looks like this:
Solved! Go to Solution.
Hi,
First make sure you have a date table. If you dont know what this is, star by reading this article and do some reserach about this, so that you understand the concept.
https://kohera.be/power-bi/how-to-create-a-date-table-in-power-bi-in-2-simple-steps/
Then you can create something like this
Create a line chart and add to X-axis the Month, the facts to the Y-axis and add to the Legend the Year (This way you dont agregate you yearly values).
Then create a slicer for the year, and this way you can chose the years you want to display in the line chart
Kind regards,
José
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂
Hi,
First make sure you have a date table. If you dont know what this is, star by reading this article and do some reserach about this, so that you understand the concept.
https://kohera.be/power-bi/how-to-create-a-date-table-in-power-bi-in-2-simple-steps/
Then you can create something like this
Create a line chart and add to X-axis the Month, the facts to the Y-axis and add to the Legend the Year (This way you dont agregate you yearly values).
Then create a slicer for the year, and this way you can chose the years you want to display in the line chart
Kind regards,
José
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 49 | |
| 40 | |
| 32 | |
| 14 | |
| 13 |
| User | Count |
|---|---|
| 85 | |
| 70 | |
| 37 | |
| 28 | |
| 27 |