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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

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
Anonymous
Not applicable

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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