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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ankitsuri26
Regular Visitor

Static and dynamic chart in same visual

Hi, I am beginner in power bi and am creating a reporting dashboard for a becnhmarking data. I want to create a line chart visual and show 2 graphs. One graph gets dynmaically populated based on a selection. This i am able to do by using interactions. But the problem is that based on the selection in the slicer the other graph (which is supposed to be static benchmark) also changes. I am not able to figure this out. Can anyone help?

ankitsuri26_0-1704818657644.png

 

 

1 ACCEPTED SOLUTION
PijushRoy
Super User
Super User

Hi @ankitsuri26 

For static line please use REMOVEFILTER function which field you are using in slicer. Use the measure in X Axis
https://learn.microsoft.com/en-us/dax/removefilters-function-dax
Below is the example only

Total Profit (REMOVEFILTER) = CALCULATE(
    [Profit],
    REMOVEFILTERS(
        'Sales by Store'[Instance]
    )
)


 If your requirement is solved, please make sure to MARK AS SOLUTION and help other users find the solution quickly. Please hit the LIKE button if this comment helps you.

Thanks
Pijush




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





View solution in original post

3 REPLIES 3
ankitsuri26
Regular Visitor

It worked like magic. thanks a ton!

You are welcome @ankitsuri26 




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





PijushRoy
Super User
Super User

Hi @ankitsuri26 

For static line please use REMOVEFILTER function which field you are using in slicer. Use the measure in X Axis
https://learn.microsoft.com/en-us/dax/removefilters-function-dax
Below is the example only

Total Profit (REMOVEFILTER) = CALCULATE(
    [Profit],
    REMOVEFILTERS(
        'Sales by Store'[Instance]
    )
)


 If your requirement is solved, please make sure to MARK AS SOLUTION and help other users find the solution quickly. Please hit the LIKE button if this comment helps you.

Thanks
Pijush




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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