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
plin924
Frequent Visitor

Using SelectedValue with Field Parameter (Prior Period Title Change)

Hi Everyone,

 

Down below I have my company's sample sales report.  I'm trying to achieve the following:

-In the red square, when a value is selected, the title, instead of "Month-1, Month-2", replace with "12/31/2022, 11/30/2022 etc..)

 

Here's what I've done:

-I'm using field paramater, and in the name i'm using selected value to attempt to dynamically update the column title. (see 2nd screen shot)

-The SelectedValue will pass through the card, and display without problem (see first screen shot, purple underline), but failed to display as a column title, (see red square, screen shot 1)

 

Does anyone have any suggestions?

 

Thanks,

Peter

 

 

plin924_0-1675442253939.png

 

12 REPLIES 12
Prasoonk555
Regular Visitor

Did you get any working solution for this?

Though unrelated, please watch the last 5 minutes of the video which shall give you the concept necessary for a solution:

https://www.youtube.com/watch?v=7mlYt6x-XCo&list=PLApPcvU5-R26t4dylOnPy8A2-lr4C0C--&index=31

sorry.. not quite the desired results.

mister_bark
Frequent Visitor

Hari's BI YouTube has a solution to this.
https://www.youtube.com/watch?v=9_2m5Csr55c

 

You essentially replace the static values in the first column of your field parameters with data references.

Hey, mister bark
I am afraid that this is not a solution to the problem, the problem is that "selectedvalue()" does not work to create a dynamic column header based on a slicer.
"Today()" works fine to make a dynamic column header but in this example it's not based on a slicer so "selectedvalue()" is not used.

How about this solution? Creating two calculation groups and a field parameters table which are linked?
https://youtu.be/HTIsZLGpFek?feature=shared

The newest update allows calculation groups to be created directly in Power BI desktop which may make this more accessible for folks who do not use Tabular Editor.

stefan_iceland
Frequent Visitor

Any luck with this?

Though an unrelated video, this may help you with the concept:

https://www.youtube.com/watch?v=7mlYt6x-XCo

sorry, no.  I wish there is a solution.

plin924
Frequent Visitor

Not much luck there. It helps the visual title, but not the measure title.  Appreciate the help!

 

Padycosmos
Solution Sage
Solution Sage

The latter part of this video might help

https://www.youtube.com/watch?v=inJ3Yt7ay30

tried it. not much luck there.

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.