Forum Discussion

asifrasool's avatar
asifrasool
Icon for Helper I rankHelper I
3 years ago

Dynamically changing url to get the data based on relevant parameter

Hi Everyone, I have a data source system from where I have to fetch the data into powerbi. I have to connect via 'Web' connector in powerbi to make 2 calls to get the data. In otherwords its a rest api call.

 

1) First call will fetch me the data as shown in the SS below. This call is working fine. The following numbers are called PZN.

 

2) The second call will bring me the data related to this number, the general url will be like 

I added another parameter and made this url like this, (second parameter is essential for this api call to run)

here I want powerbi to read the pzn number from 1 api call (show in number 1) and pick the first number and put it in front of pzn=XXXXXXXXXXX (e.g. drug?catalogShort=MMI&pzn=14295542) I want to do it like this for all of the PZN returned in first call.

 

 

Is there any possibility I can do this work in PowerBI? If yes then any leads would be highly appreciated.

 

Thanks and Kind Regards,

 

Asif

3 Replies