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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.