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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Line graph from a four column table

Hello

 

My data is:

 

Product ID - Sales - Date - Type of Sales

A                -    5  - 01/01/20 - Retail

A                -    4  - 01/02/20 - Web

C                -    3  - 02/01/20 - Retail

etc

 

Where do I put each of these columns in a line graph so that I will show in the Sales per Date for each Product/Type of Sales pair?

 

The Legend field does not seem to be able to accept more than one columns.

 

Thanks!

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

You can concatenate the ID and Type as a new calculated column and then put that column in the legend.

Product-Type = Sales[ProductID] & "-" & Sales[Type Of Sales]

 

Here's what that might look like using a modified version of the .pbix @rodrigosan provided (concatenated two different ways):

AlexisOlson_0-1635631945833.png

 

You could also consider using small multiples to get one of these options (no new column required):

AlexisOlson_1-1635632019606.png

View solution in original post

2 REPLIES 2
AlexisOlson
Super User
Super User

You can concatenate the ID and Type as a new calculated column and then put that column in the legend.

Product-Type = Sales[ProductID] & "-" & Sales[Type Of Sales]

 

Here's what that might look like using a modified version of the .pbix @rodrigosan provided (concatenated two different ways):

AlexisOlson_0-1635631945833.png

 

You could also consider using small multiples to get one of these options (no new column required):

AlexisOlson_1-1635632019606.png

rodrigosan
Responsive Resident
Responsive Resident

Hi, could you check if the solution suits you

 

https://1drv.ms/u/s!AjZuC23Tllhiy1IUgfAbEVa0mZd7?e=CkRsIL

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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