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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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
Top Kudoed Authors