Quantcast
Channel: Power Query topics
Viewing all articles
Browse latest Browse all 31168

Conditional Logic - Looping Parameter page on API, Power BI

$
0
0

Hi,

 

I'm new in this M world.

So the problem is: I wanna increment the parameter page (++1), until the last page. In the future get the data on the page and go to the next page.

 

EX:

https://api.github.com/repos/" & login & "/" & repository & "/issues?state=all&sort=created&page=" & Text.From(page) // page is my variable

 

Thinking as JAVA man we just adding a variable and use for/while depending the situation.

Now, how to do that using M language?

 

I did the homework and this sites have some information:

http://www.toadworld.com/platforms/sql-server/b/weblog/archive/2014/03/10/conditional-logic-in-power-query

https://seddryck.wordpress.com/2017/01/07/do-while-loop-with-power-bi-m-language/

 

But it's not working. Smiley Sad

 

Anyone can help me?

 

Thanks.


Viewing all articles
Browse latest Browse all 31168

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>