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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
JustinDoh1
Post Prodigy
Post Prodigy

How to get away from Bookmark to create relationship on visuals?

I have my PowerBI file uploaded here.

 

I have three visuals (used Parameters) that are tied to Bookmarks.

JustinDoh1_0-1732748137180.png

 

JustinDoh1_2-1732748587493.png

(Currently, all these three Parameters are in "All" Bookmark.)

 

When I first created these PowerBI visuals, because these particual visuals are Parameters, I developed using Bookmarks.

 

Now, I came across to the point that I cannot continue doing this way (using Bookmarks).

I have to use "Location" filter to display these Parameters. 

 

Is it possible?

 

Didn't PowerBI come up with a new solution to get away from Bookmark like 3 years ago?

 

(I also tried creating relationship between three Parameter visuals with table for "Location", but as I expected, it would not work.) 

1 ACCEPTED SOLUTION

Hi @JustinDoh1 

hehehe, "ideal solution" is very subjective to the business needs, but yes... if you want to have the parameter apply to all selected locations, you can adjust your forecast measure as such:

Forecast = 
VAR _Base = [SUM C1-C3]

-- User Configurations
// Collects user selected location(s)
VAR _GetLocation = VALUES(Location[Location]) 

// Collects the What-If parameter value
VAR _ForecastVal = [WhatIf Value]

// Collects the table's current row level context
VAR _Provider = SELECTEDVALUE(tblScore[Location])                                       

// If current location in context is selected, add forecast, else return base value
VAR _Output = IF(_Provider IN _GetLocation, _Base + DIVIDE(_ForecastVal, 2), _Base)

RETURN _Output

 

And this would be your expected output:

hnguy71_1-1733269383682.gif

 

 



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

12 REPLIES 12
hnguy71
Super User
Super User

Hi @JustinDoh1 

Looks like you're trying to simply your process and get rid of bookmarks. Assuming you only want to see forecast for one location at a time, you can achieve this with a disconnected table and just one parameter field.

I'm just speculating here but this may be your expected results:

 

Step 01: Create a disconnected table to store your locations

hnguy71_0-1732758153149.png


Step 02: Replace the old slicer the new "Location" field 

hnguy71_1-1732758271949.png

 


Step 03: Re-purpose one of your parametere tables, doesn't matter which since they all have the same start and end. For my example, I'll use ARB.

Step 04: Adjust your Forecast measure with this instead:

Forecast = 
VAR _Base = [SUM C1-C3]

-- User Configurations
VAR _GetLocation = SELECTEDVALUE(Location[Location], MAX(Location[Location]))
VAR _ForecastVal = [ARB Value]
VAR _Provider = SELECTEDVALUE(tblScore[Provider Name])


VAR _Param =

SWITCH(
    TRUE(),
    _Provider = _GetLocation, _Base + DIVIDE(_ForecastVal, 2),
    _Base
)

RETURN

_Param

 

And with that, hopefully this is what you're looking for:

hnguy71_2-1732759231368.gif

 



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

@hnguy71 

Thank you so much.

I think your new measure looks amazing.

I need to go back to my work on Monday, and ask my manager if having one parameter is acceptable.

I think knowing that bookmark would limit how filter works, one parameter should be only way to go.

Other than using this measure, there is no other way to show more than one parameter, correct?

Hi @JustinDoh1 ,

You're welcome! 

 

I'm confident your manager would find the solution acceptable. We can always modify it to meet expectations. 



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

@hnguy71 

Before I present this case of modified version of PBIX file to my manager, I have three questions for you:

Please find my latest version of PBIX file here.

I noticed that, If I have more than 1 Location selected, what is logic that gets applied for "WhatIf" scenario/paramter?

Or, should this "WhatIf" scenario/parameter be used for only one location?

 

It appear that when there are more than one location, change would only applied to the very bottom one.

 

JustinDoh1_0-1733175989147.png

JustinDoh1_2-1733176163985.png

I am curious what this part mean:

JustinDoh1_0-1733177753897.png

 

Thanks.

 

 

Hi @JustinDoh1 

 

Question 01:

 

VAR _GetLocation = SELECTEDVALUE(Location[Location], MAX(Location[Location]))

 

When you have more than one location selected, the optional argument from the function SELECTEDVALUE allows you to dictate what value to use. For this scenario, we decided that we're only going to allow value adjustment to one locatio.  If no location is selected or more than one is selected, then we'll use the last or max location found within the table. Of course, this can be changed based on the business needs.

 

Question 02: 

The "What-If" parameter can be used for all your locations, all at once, or only for selected locations. The parameter only captures the value, and doesn't limit or restrict any measure / calculation from using it. 

 

Question 03:
We're using a SWITCH function to decide which location we'll apply the forecast value to. From your original pbix, it seems you only wanted to apply to one location at a time using the formula:

_Base + ( _Param / 2 )

I adjusted the division calculation to use the DIVIDE function instead. Essentially, take the "What-If" value and divide it by 2 to match your earlier calculation logic. Same with question 01 and 02, we can selectively decide to apply the calculation to one, many, or all locations.



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

@hnguy71 

Thank you so much for your explanations.

I asked my manager, and she asked me to explore more for an ideal solution..  😞

Is there anyway to somehow, show the changes on all sites whatever (is/are) selected?

JustinDoh1_0-1733267849915.png

 

This is link to the latest PBIX copy that I was using.
Thank you so much!!

Hi @JustinDoh1 

hehehe, "ideal solution" is very subjective to the business needs, but yes... if you want to have the parameter apply to all selected locations, you can adjust your forecast measure as such:

Forecast = 
VAR _Base = [SUM C1-C3]

-- User Configurations
// Collects user selected location(s)
VAR _GetLocation = VALUES(Location[Location]) 

// Collects the What-If parameter value
VAR _ForecastVal = [WhatIf Value]

// Collects the table's current row level context
VAR _Provider = SELECTEDVALUE(tblScore[Location])                                       

// If current location in context is selected, add forecast, else return base value
VAR _Output = IF(_Provider IN _GetLocation, _Base + DIVIDE(_ForecastVal, 2), _Base)

RETURN _Output

 

And this would be your expected output:

hnguy71_1-1733269383682.gif

 

 



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

@hnguy71  I would have to test more with real data later (possibly tomorrow), but I would have to definitely give you "congrats" and "thank you!".

 

Update:

I might have to post a separate thread as I got some different requirement 😞 from my manager (maybe I misunderstood expectation from yesterday's email) as she wants separate "whatIf" buttons to be shown for different locations. (Like having individual "WhatIfs" for different locations and shown and hidden depending on selecting location). I will let you know the thread info. after I post. 

lbendlin
Super User
Super User

What is the actual business problem you are trying to solve? Do your report users care about this, or are they looking to get insights from the data?

@lbendlin 

Thank you for asking.

Sorry, but, I am not exactly sure what you are asking.

My manager wanted me to come up with a solution to modify the "what if scenario" (parameter), but filtering out by one location (due to security / visibility).

Use RLS for that.

@lbendlin 
Our team (at work) is already applying RLS for other visuals (like Matrix), but the problem/hardest part is how to manage "parameter".

I only found a way using Bookmark initially.  Is there any other way?  @hnguy71 came up with a new measure which would use one parameter, and I am going to ask my manager if that is acceptable at this point.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors