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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
tksnota
Post Patron
Post Patron

Graph with 2 Lines Using One Table

Hi

 

I want to create a chart showing 2 lines namely debit and credit using the cost (bdr_hfl).

 

I don't want to split the table between credit and debit.

 

Kindly advise if it is possible.

 

Thanks...tksnota...

 

tksnota_1-1730387020403.png

 

 

tksnota_0-1730386729912.png

 

2 ACCEPTED SOLUTIONS
FreemanZ
Super User
Super User

hi @tksnota ,

 

yes, pivot the category column in power query, then everything will be more intuitive.

 

about pivot, check this:

https://learn.microsoft.com/en-us/power-query/pivot-columns

 

View solution in original post

Anonymous
Not applicable

Hi @tksnota ,

 

Did FreemanZ's reply help you?

In my opinion, I think you want us to recommend a visual. Line chat in Power BI is possible.

Put date as x-axis, bdr_hfl as y-axis, category as Legend. Then you will get the same content as in the image you provided.

vstephenmsft_0-1730799869625.png

 

Best Regards,

Stephen Tao

 

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 @tksnota ,

 

Did FreemanZ's reply help you?

In my opinion, I think you want us to recommend a visual. Line chat in Power BI is possible.

Put date as x-axis, bdr_hfl as y-axis, category as Legend. Then you will get the same content as in the image you provided.

vstephenmsft_0-1730799869625.png

 

Best Regards,

Stephen Tao

 

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

 

 

FreemanZ
Super User
Super User

hi @tksnota ,

 

yes, pivot the category column in power query, then everything will be more intuitive.

 

about pivot, check this:

https://learn.microsoft.com/en-us/power-query/pivot-columns

 

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