The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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?
Solved! Go to Solution.
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
Proud to be a Super User! | |
It worked like magic. thanks a ton!
You are welcome @ankitsuri26
Proud to be a 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
Proud to be a Super User! | |