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
rsabadell
New Member

Power Query Post

Hello! I'm very new to Power Query, I searched for a few solutions, but haven't really gotten nowhere.

 

What I'm trying to do is get the main table from this site (don't worry it is from the brazilian government): https://cvmweb.cvm.gov.br/SWB/Sistemas/SCW/CPublica/CDA/CPublicaCDA.aspx?PK_PARTIC=172817

The issue is there is a dropdown menu and the standard date that I get is the most recent one. I need to change that date for 3 months ago.

From what I gathered using Postman, the variable that I need to change is ddCOMPTC, but I'm not really sure how to do it. The code I'm trying to work with is this (but maybe I'm doing it completely wrong):

 

let
    Content1 = "108123873",
    Fonte = Json.Document(Web.Contents("cvmweb.cvm.gov.br/SWB/Sistemas/SCW/CPublica/CDA/CPublicaCDA.aspx?PK_PARTIC=172817", [Headers=[#"Content-Type"="aplication/x-www-form-ulrenconded"], Content=Text.ToBinary(Content1)]))
in
    Fonte

  

1 REPLY 1
Michael19842
Helper II
Helper II

The URL you request does not result in a JSON document. You can use F12 in any modern browser to look at what sources are requested. (use the network tab and press F5 to refresh)

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
Top Kudoed Authors