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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors