Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Passing Measure value as parameter to HANA

Hi,

I want to give user an option9may be in slicer) to select the parameter value that should be passed to the SAP HANA parameter and accordingly fetch the data for the view. Is this possible somehow?

  • hi, Anonymous 

    Could you please tell me if you still have other problem? If not, could you please mark the helpful replies as Answered?

     

    Best Regards,

    Lin

4 Replies

  • v-lili6-msft's avatar
    v-lili6-msft
    Community Support

    hi, Anonymous 

    After my research, I'm afraid it couldn't achieve in Power BI for now.

    Measure can be affected by filter/slicer/interaction, and it is based on current data model by DAX function.

    Assuming that you use measure as a parameter to get data from HANA, then dataset in data model will be changed, the measure will be changed too, then dataset in data model will be changed again...... This will go on forever.

    So it could be the parameter value.

    For parameter value, you could use Parameters function in edit queries.

    https://www.mssqltips.com/sqlservertip/4475/using-parameters-in-power-bi/

     

    Best Regards,
    Lin

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      The problem is i want to give end user(user accessing report through the power bi service) the option maybe in a slicer to select a value which should be pass to hana as the parameter value.Is that possible?

      • v-lili6-msft's avatar
        v-lili6-msft
        Community Support

        hi, Anonymous 

        I think it is impossible for your requirement, as I said above, the option may be in a slicer to select a value is based on the data model, you use it as parameter for data source, it will lead to go on forever.

         

        Best Regards,

        Lin