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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Analitika
Post Prodigy
Post Prodigy

Can't display more lines in visual in Power BI

Hi,

 

I would like to  ask how make that using one measure I could display lines in visual. Line and clustured column chart. I tried and see that need to create separate measure for each year, but how make one measure that will display lines we selected in date slicer years.

 

 

Link to Power BI file: example_visual.pbix - „Google“ diskas

11 REPLIES 11
v-jianboli-msft
Community Support
Community Support

Hi @Analitika ,

 

Yes, currently if you want to add multiple lines to the Line and clustered column chart, you have to create a measure for each line.

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

So if data has years like from 2010 until now, so 24 measures for example, will be created for each line? So ineffective.

Anonymous
Not applicable

Sadly this is the case yes.

So no workaround?

Anonymous
Not applicable

Not to my knowledge besides for the 1 measure 1 line.

Oh no. So visual will be overwhelmed.

v-jianboli-msft
Community Support
Community Support

Hi @Analitika ,

 

To my knowledge, the "lenged" column only affects the columns in a combo chart in power bi for now. 

An idea similar with what you expect has been submitted here, please vote it up and you can add comments.Hopes Power Bi will implement this in nearby future.

So for your requirement, there are two workaround for you refer to:

1. As you said, create different measure for each category and then drag them in Line values.

    If you want the number of measures to change dynamically based on your choices in the slicer, you can consider creating field          parameters to replace these measures

2. Exchange Line values and Column values, and then drag category into column series.

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

So as I understood correctly, Power BI doesn't that feature at this time, so I have to create each measure for each year, right?

amitchandak
Super User
Super User

@Analitika , You have used year as a legend in that case

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

I have no idea how fix it.

So what I have to change, fix? To get lines number as selected in slicer. Adding example, how I would expect to see visual. 

Analitika_0-1675679643151.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.