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
sboghani
Employee
Employee

Changing Parameter in Dataset Yields Old Value for Measurement Only

I'm able to successfully change my parameter StartDate and have it's updated value be used in my query upon refreshing. But I also want to display StartDate in the report, so I created a measure StartDate = StartDate and am displaying it in the report. This display gets updated when I manually edit the parameter in PBI Desktop. When I change it online in the dataset section, the display doesn't change even though the data itself did (proving that the changed parameter is being used correctly). Is this because the measurement isn't updating? Is there a different way to show StartDate besides creating a measurement?

1 ACCEPTED SOLUTION
nandukrishnavs
Super User
Super User

@sboghani 

 

Follow the below steps.

Create a parameter.

1.JPG

 

Create another query as a reference to the previously created parameter.

2.JPG

Then convert to table

3.JPG

Now you have the parameter value in the table.

4.JPG

Create a new measure

StartDateValue = MAX('StartDate (2)'[Column1])

 

This should work in your scenario. Please test this.



Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂


Regards,
Nandu Krishna

View solution in original post

1 REPLY 1
nandukrishnavs
Super User
Super User

@sboghani 

 

Follow the below steps.

Create a parameter.

1.JPG

 

Create another query as a reference to the previously created parameter.

2.JPG

Then convert to table

3.JPG

Now you have the parameter value in the table.

4.JPG

Create a new measure

StartDateValue = MAX('StartDate (2)'[Column1])

 

This should work in your scenario. Please test this.



Did I answer your question? Mark my post as a solution!
Appreciate with a kudos
🙂


Regards,
Nandu Krishna

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.

Top Solution Authors