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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
swhite77
Frequent Visitor

line graph - add line based on slicer selection(s)

I have a line graph that spans the last 13 months and has two slicers.

I'm displaying the cost-of-goods% (COGS) based on the selection in the first slicer (State = Colorado)

The second slicer is all the law firms included for the State.

I'd like to add/remove lines (Blue line in attached prototype) to my graph based on selections made in the second (Law Firm) slicer so I can compare how this law firm is doing compared to the overall State values.

 

COGS Line graph.jpg

1 ACCEPTED SOLUTION
swhite77
Frequent Visitor

I figured out how to do this.

 

One simple measure to figure COGS for the law firm.

And a second measusre COGS for Region % = CALCULATE([COGS for LF%], ALL(FileEntry[Law Firm Name])).

It was easier than I thought.  Have already identified where I can use similar functionality.

View solution in original post

1 REPLY 1
swhite77
Frequent Visitor

I figured out how to do this.

 

One simple measure to figure COGS for the law firm.

And a second measusre COGS for Region % = CALCULATE([COGS for LF%], ALL(FileEntry[Law Firm Name])).

It was easier than I thought.  Have already identified where I can use similar functionality.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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