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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Hello, can you help? Power BI looping

Hello, 

We are wondering how to we can change the parameters within a URL to different days, months, and years. 

For example, analyzing the history of the Top 40 Charts: 

http://top40-charts.com/chart.php?cid=27&date=2019-04-20 .

For example, this is April 20, 2019. How can we automatically compile a loop of a long time period instead of having to do it manually?

 

Thank you!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

This might work. It will create a URL for each date in for a set period of time. 

 

  1. Create a new table 
    Date = 
        ADDCOLUMNS(
            CALENDAR("1/1/1980", TODAY()),
                 "Formatted", FORMAT([Date], "YYYY-MM-DD")
                )
  2. Create a column concating your URL and the formatted date 
    Column 2 = CONCATENATE("http//Top40-chart.com/chart.php?cid=27&date=", 'Date'[Formatted])
  3.  Format the data category to a URL

View solution in original post

1 REPLY 1
Anonymous
Not applicable

This might work. It will create a URL for each date in for a set period of time. 

 

  1. Create a new table 
    Date = 
        ADDCOLUMNS(
            CALENDAR("1/1/1980", TODAY()),
                 "Formatted", FORMAT([Date], "YYYY-MM-DD")
                )
  2. Create a column concating your URL and the formatted date 
    Column 2 = CONCATENATE("http//Top40-chart.com/chart.php?cid=27&date=", 'Date'[Formatted])
  3.  Format the data category to a URL

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.