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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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