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

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

 

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

 

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

 

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

 

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

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

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.