Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to create parameter for dynamic date parameter in json api

Hi all,

 

still pretty new to Power BI and trying to find out if an idea is working out in Power BI.

I am calling a web API in json format which looks like this


https://wd3-services1.myworkday.com/ccx/service/customreport2/1111/Fct_All_Employees_effective_date?...2019-12-31-08%3A00&format=json

 

It returns a list of all employees with their team information etc.
To be able to display historic changes of the teams employees belong to, I would like to replace the fixed date with a dynamic parameter. I saw in this post, that it is possible in general: https://community.powerbi.com/t5/Desktop/How-to-pass-a-dynamic-date-parameter-in-the-json-api-in-pow...


Now I am trying to find out if this solution works for my scenario. I would like to connect the date parameter I am putting into the URL to my dimDate table ('dimDate'[Start of Month]) which is my calendar dimension table.

 

Something like this:

https://wd3-services1.myworkday.com/ccx/service/customreport2/1111/Fct_All_Employees_effective_date?...'dimDate'[Start of Month]-08%3A00&format=json

 

Is it possible to make such a connection? Could Power BI in this case call more than one report based on different dates at the same time? Could I e.g. create a visual with 'dimDate'[Start of Month] data on the axis, calling a different report for each month and summarizing all of them in one visual? Or is Power BI only able to show one result of the report at a time?

Thanks a lot in advance!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

Yes, you can add a new column to your date table and paste below formula in custom column panel. (notice: replace below the bold part with your date field name)

Web.Contents("https://wd3-services1.myworkday.com/ccx/service/customreport2/1111/Fct_All_Employees_effective_date?"&Text.From([Datefield])&"08%3A00&format=json")

22.png

Regards,

Xiaoxin Sheng

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous,

You can add a custom column with to concatenate root url with datetime field value and use in web connector.

#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each Web.Contents("https://wd3-services1.myworkday.com/ccx/service/customreport2/1111/Fct_All_Employees_effective_date?"&Text.From([Column])&"08%3A00&format=json"))

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Thanks for the quick help @Anonymous - where would I add the column? In a new table or in the data source where I add the web link as source? I already have the column with all dates in another table, could I refer to this one?

Anonymous
Not applicable

Hi @Anonymous,

Yes, you can add a new column to your date table and paste below formula in custom column panel. (notice: replace below the bold part with your date field name)

Web.Contents("https://wd3-services1.myworkday.com/ccx/service/customreport2/1111/Fct_All_Employees_effective_date?"&Text.From([Datefield])&"08%3A00&format=json")

22.png

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors