Forum Discussion
Quentin_
Helper I
3 years agoApi call dynamic date determine by the user
Hello, I don't know if this is possible in PowerBi but I would like generate an API call based on the selected period in my "Calendar" filter. If the selected period changes, the API call should...
Quentin_
Helper I
3 years agoHello cpwebb
Thank you for your reply.
I must have a table based on the selection calendar because if I request all my API I will have data day by day.
Exemple :
| Date | visits | Bounce rate |
| 01/01/2023 | 1000 | 0,5 |
| 02/01/2023 | 5000 | 0,3 |
| ... | ... | ... |
| 11/07/2023 | 1300 | 0,4 |
It's not a problem if I create a measure to calculate "visits" column but my calcul will be wrong if I apply a measure on bounce rate column because the result of API is already an average. If I create a measure I will apply an average to another average :s
It's the reason why I must refresh my api call based on the user selection period.
Thank you 🙂
cpwebb
Microsoft Employee
3 years agoOK, well as I said you won't be able to do this with Power BI - your only option will be to get the raw data and recreate all the calculations in a measure.