Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Dear all,
I would like to know if is there any chance how to show years (2018-2022) which I have in one column in line chart graphs as separate lines? Everytime when I put column with yeat to graph it will show me just one line.
| Period | Year | Value |
1 | 2019 | 15 000 |
| 2 | 2020 | 12 000 |
| 6 | 2022 | 13 000 |
| 7 | 2022 | 18 000 |
| 2 | 2021 | 10 000 |
Solved! Go to Solution.
Hi @mmadera ,
Here are the steps you can follow:
1. Create measure.
Measure =
IF(
HASONEVALUE('Table'[Year]),1,0)
2. Result:
If I have misunderstood your meaning, please provide your desired output and your pbix without privacy information.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @mmadera ,
Here are the steps you can follow:
1. Create measure.
Measure =
IF(
HASONEVALUE('Table'[Year]),1,0)
2. Result:
If I have misunderstood your meaning, please provide your desired output and your pbix without privacy information.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 96 | |
| 70 | |
| 50 | |
| 42 | |
| 40 |