Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
mmadera
New Member

Rows separate in graph

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. 

 

PeriodYear

Value

1

201915 000
2202012 000
6202213 000
7202218 000
2202110 000
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @mmadera ,

Here are the steps you can follow:

1. Create measure.

Measure =
IF(
    HASONEVALUE('Table'[Year]),1,0)

2. Result:

vyangliumsft_0-1650593389665.png

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi  @mmadera ,

Here are the steps you can follow:

1. Create measure.

Measure =
IF(
    HASONEVALUE('Table'[Year]),1,0)

2. Result:

vyangliumsft_0-1650593389665.png

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

amitchandak
Super User
Super User

@mmadera , No very clear, You can year as a legend, what would like to have on axis ?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors