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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

dynamic source path for link as per condition

Source imageSource image

Hi,

There is a condition where i need to change the source dynamically. This is the current source link for my odata source "http://SAP.COM:9086/sap/odata/MDG_CDS/MDG(p_date='20200101')/Set" . The condition is to take previous two calender years data. When we are in year 2023 the link must be  "http://SAP.COM:9086/sap/odata/MDG_CDS/MDG(p_date='20210101')/Set".

The p_date=2021 part of the link must change dynamically when we are in year 2023 .

p_date=2022 when are in year 2024 and so on

This is the condition which i must appy to get data in dynamic way . How can this be achieved?

 

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

Please refer to Sergei's answer:

Power Query from dynamic URL

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors