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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.