Dinamic Data Reader

Unknown
edited April 2020 in Platform

Hi community,

I've the following issue to solve.

I have a manual SQL that populates a cube, I need to dinamically pass a parameter in the query

in order to let the user "move between days" on a comparison column.

 

I would like to let the user populate a field somewhere where he can write the desired number of days (@UserInputDays variable) in order to dinamically populate the comparison cube.

 

Is there a way to improve this solution? I sow here that for SAP connector something is available.

 

Kind regards,

Marco

 

image

Answers

  • Helmut Heimann
    Helmut Heimann Employee, Community Captain
    500 Comments 250 Likes Fourth Anniversary 25 Answers

    Hi Marco Balduini,

     

    you could achieve that using a ROLAP cube where the user can enter the number of days. You'd have to build a JOIN in your manual SQL statement using both your source table and the ROLAP (or use a sub-select to derive the number of days from the ROLAP and put this in your SQL (instead of the "@UserInputDays")).

     

    Kind Regards,

    Helmut

  • Hi Helmut Heimann,

     

    thanks for the hint! I did it and it worked!

     

    Kind regards,

    M

  • Helmut Heimann
    Helmut Heimann Employee, Community Captain
    500 Comments 250 Likes Fourth Anniversary 25 Answers

    Hi Marco Balduini,

     

    you're welcome!

    ...and, invited to mark an answer as correct if it suited your needs ;-)

     

    Kind Regards,

    Helmut