Forum Discussion

sboghani's avatar
sboghani
Icon for Microsoft Employee rankMicrosoft Employee
6 years ago
Solved

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?

  • sboghani 

     

    Follow the below steps.

    Create a parameter.

     

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

    Then convert to table

    Now you have the parameter value in the table.

    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
    🙂

1 Reply

  • nandukrishnavs's avatar
    nandukrishnavs
    Icon for Community Champion rankCommunity Champion

    sboghani 

     

    Follow the below steps.

    Create a parameter.

     

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

    Then convert to table

    Now you have the parameter value in the table.

    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
    🙂