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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

exhibit same variable several times?

Newbie here. I have a column named category which contains 5 variables (M1 - M2- M3 - M4- M5). For each variable, the amount is collected since 2018 on a monthly basis. What I am trying to do is to present each variable at a time in a line chart on a monthly basis: so what I want to showfor example,  is 3 lines of M1 (M1 2018 - M1 2019 - M1 2020) with y amount in USD and x is the months (1 to 12). Help please? 🙂

 

d_categYearMonthAvg_amount
M1201912241
M1201922401
M1201932731
M1201942722
M1201952383
M1201962283
M1201972335
M1201982552
M1201992423
M12019102362
M1201911350
M12019123957
M1202012239
M1202022658
M1202032681
M1202043278
M1202052932
M1202062484
M2202013493
M2202021211
M2202033940
M2202040
M2202050
M220191877
M220192359
M2201938264
M2201941034
M2201953938
M2201969630
M2201970
M2201984012
M2201998832
M22019101231
M22019111616
M22019121275
M2202016400
M2202023405
M2202038843
M2202041154
M2202051200
M2202065006
M3201913188
M3201923916
M3201935869
M3201942596
M3201952234
M3201967875
M3201972472
M3201987537
M3201992941
M32019103577
M32019114250
M32019128869
M3202014210
M3202029248
M3202033418
M3202047651
M3202052069
M3202063319
3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

How about creating a calculated table as below and use it as legend in line chart?

1.PNG

 

Best Regards,

Jay

amitchandak
Super User
Super User

@Anonymous ,Can you share sample data and sample output in table format?

 

Year as axis and category as legend or vice versa.

https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-combo-chart

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
Anonymous
Not applicable

Thank you @amitchandak  for your reply. I've added a table with a sample dataset.

Thanks again

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.