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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Surender123
Regular Visitor

undefined

Hello Sir, please help me . I want to import data in power bi from Apache druid . How can i create connections.

3 REPLIES 3
Anonymous
Not applicable

Hi @Surender123 ,

 

I think you can try to connect to Apache druid in Power BI by code as below.

let
  Query1 = Json.Document(Web.Contents("paste_url:paste_port/druid/v2/?pretty", 
[Headers=[#"Content-Type"="application/json"], 
Content=Text.ToBinary(
"{
""queryType"": ""groupBy"",
""dataSource"": ""paste_your_table"",
""dimensions"": [""dimension1""] ,
""granularity"": ""all"",
""aggregations"": 
       [
       {
       ""name"": ""metric1"",
       ""type"": ""longSum"",
       ""fieldName"": ""metric1""
       }
       ],       
""intervals"": [ ""2020-07-27T00:00:00.000/2020-08-03T00:00:00.000"" ]
}

  
  "
)
]
)),
    totable = Table.FromList(Query1, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    expand = Table.ExpandRecordColumn(totable, "Column1", {"version", "timestamp", "event"}, {"Column1.version", "Column1.timestamp", "Column1.event"})
in
    expand

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hi

Thanks for support me, I used this query and got following error.

Error: DataSource.Error:Web.Contents with the Content opetion is only supported when connecting enonymously.

Greg_Deckler
Community Champion
Community Champion

@Surender123 Try using an ODBC driver: Connecting Tableau to Apache Druid - Stack Overflow



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.