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

help with line chart and filter

hi all,

i got 2 issues in my chart, hope you can advice.

1) in the line chart, how do i get it to show something like this?

line-graph-excel.png

 

2) for the second chart, how do i filter by suppliers?

Thank you very much.

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

What about this?

filter supplier 2.gif

 

Best Regards,

Icey

 

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

14 REPLIES 14
Tahreem24
Super User
Super User

@Anonymous ,

 

For your reference please see the attached snap shot.

1.JPG

 

Don't forget to hit THUMBS UP and mark it as a solution if it helps you!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Tahreem24
Super User
Super User

@Anonymous ,

 

For your first issue, Use Line chart from Visualization pane. And drop the following in property option as below:

Axis --> Month

Legend --> Year

Values --> Numberic field

 

 What I understood from your second question is to filter supplier in that chart so please take slicer and put supplier column in that slicer.

 

Don't forget to hit THUMBS UP and mark it as a solution if it helps you!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

@Tahreem24 

Thanks, I got the first one done.
As for my the second question, my data source only have the value and date.
the orginal source came from a server. how do i add a column with Supplier B in my data?

 

Capture.JPG

@Anonymous ,

 

I am not exactly geetting what are you saying, I apologise for that. But You wanted to create new column in your Supplier B table? is that so ? 

 

Don't forget to hit THUMBS UP and mark it as a solution if it helps you!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

@Tahreem24 
yes, to create a new column or perhaps something else.

The end result was to be able to filter by Supplier.

@Anonymous ,

 

You can create a new column by selecting New Column option from Home menu. And use the DAX formulas to get your expected result.

 

For better clarity, Can you please share the exact requirement of your new column?

 

Don't forget to hit THUMBS UP and mark it as a solution if it helps you!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

@Tahreem24 
if were to add a new column with text "Supplier A", would it be able to use as a filter?

@Anonymous ,

 

Create new column like below:

Supplier A = "Supplier A"
 Capture.JPG

Don't forget to hit THUMBS UP and mark it as a solution if it helps you!

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

@Tahreem24 
I got the column but how to get the filter up?

Icey
Community Support
Community Support

Hi @Anonymous ,

How is your second chart like? Line chart? 

You need to determine which suppliers these records belong to before they can be filtered.

For example, 

Supplier =
IF (
    SupplierB[Date] < DATE ( 2018, 7, 1 ),
    "Supplier A",
    IF (
        SupplierB[Date] < DATE ( 2019, 1, 1 ),
        "Supplier B",
        IF ( SupplierB[Date] < DATE ( 2019, 7, 1 ), "Supplier C", "Supplier D" )
    )
)

supplier.PNG

supplier.gif

 

Best Regards,

Icey

 

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

Anonymous
Not applicable

@Icey 
thanks icey.

in my case, i have 3 worksheets and all has the same date from 2014-2016.

is there a way to use the existing file for the supplier filter?

Here the attached file.

https://gofile.io/?c=cOrfYN

 

Thank you so much.

Icey
Community Support
Community Support

Hi @Anonymous ,

Try this:

1. Enter a table like below. Without any relationship among other tables.

table.PNG

2. Create a measure like so:

No. of Sales = 
SWITCH (
    TRUE (),
    SELECTEDVALUE ( Supplier[Suppiler] ) = "SupplierA", SUM ( SupplierA[A_No. of Sales] ),
    SELECTEDVALUE ( Supplier[Suppiler] ) = "SupplierB", SUM ( SupplierB[B_No. of Sales] ),
    SELECTEDVALUE ( Supplier[Suppiler] ) = "SupplierC", SUM ( SupplierC[C_No. of Sales] ),
    SELECTEDVALUE ( Supplier[Suppiler] ) = BLANK (), SUM ( SupplierA[A_No. of Sales] ) + SUM ( SupplierB[B_No. of Sales] ) + SUM ( SupplierC[C_No. of Sales] )
)

 filter supplier.gif

 

Best Regards,

Icey

 

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

Anonymous
Not applicable

@Icey 

Thanks, i got it working.

by the way, is it possible to show when supplier A & calendar year is selected, it will show something like this?

Capture.JPG

Icey
Community Support
Community Support

Hi @Anonymous ,

What about this?

filter supplier 2.gif

 

Best Regards,

Icey

 

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

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