Query from Kusto to PowerBI - powerbi-desktop

there are 2 different experiences i have seen while using "Query to PowerBI" from tools menu in kusto explorer. image of both
I am getting the fist one, but want to use second one(query? with additional details/options). How do i get it in second format

You can control the behavior of PowerBI query using Tools->Options->Tools->PowerBI Export To Native Connector.

Related

How to execute "group by" queries in Cosmos DB?

I need to be able to execute the following query or something similar:
SELECT count(1) AS userCount, f.gh
FROM f
WHERE f.location.coordinates[1] < <MAX_LAT>
AND f.location.coordinates[1] > <MIN_LAT>
AND f.location.coordinates[0] > <MIN_LNG>
AND f.location.coordinates[0] < <MAX_LNG>
GROUP BY f.gh
I have a collection that stores user's coordinates on a map. When zoomed in, I want to display individual users locations, but when zoomed out, I want to display the amount of users in a location grouped by their 5-character geohash. This query is exactly what I want, however you cannot run group-by queries over rest api, as mentioned in the docs.
Queries that cannot be served by gateway
It doesn't offer any alternatives to this, and I'm still pretty new to Cosmos. How can I successfully run this query?
The issue ended up being that I was trying to call "group by" through azure function bindings, and not the actual .NET SDK Nuget package. Thanks for the help.

A chart with a single number using Kusto Query Language

I have a simple Kusto request, something like the following:
customMetrics
| where timestamp > ago(10m)
| where name == "Custom metric number one"
| summarize sum(value)
Obviously, the result of this query is a single number.
I would like to pin this request to a dashboard, so the tile will look like a card having a title/subtitle and the number retrieving as the result of the Kusto request. Firstly, I tried to use "render" operator, but it can draw either a chart or a simple unformatted table. I tried to use "render card", but ApplicationInsights answered that "We currently don't support 'card' visualization type."
Is there any other possibility to create the desired tile with a single number on it?
Why not just pin the table query result:
customMetrics
| where timestamp > ago(10m)
| where name == "Custom metric number one"
| summarize sum(value)
results in
It is probably the closest to a card you can do at the moment
There is another option as well, you can add a Markdown tile, it can point to a url containing Markdown content so you might be able to create something that periodically updates a certain MD file and show that on the dashboard. You can leverage the Application Insights API to get the value you want and have an azure function generate the markdown.
Another option, if you have access to Power Bi, is to create a Power Bi report that you share with external stakeholders/non developers.When going that direction you can use all the rich visuals Power Bi provides in combination with data from Application Insights, including cards. See the docs
Or use grafana? There’s a manager instance in azure albeit still in preview.

azure stream analytics not showing in powerBI

I am using PowerBI to visualise stream analytics, however after adding a new output in azure and starting the job, it still does not appear as a dataset in powerBi.
What do I need to do to ensure it shows up?
This was caused by there being no output from the query.
When running the query using the test button, 0 rows are returned.
Solution was to modify the query so that it returns data.
SELECT persn_id,persn_name,Date,count(persn_id) Countperson INTO personBI(theoutputnameforpowerBi)
FROM personEventHubInput(theinputnamefromInputs)
Group by persn_id,persn_name,Date,tumblingwindow(ss,2)

cognos report studio adds detail filters to new select

I have a Cognos (10.1) report with SQL. (at this moment we do not use packages)
The report has several optional prompts. The problem that I have is that Cognos doesn't add the WHERE clause straight to my SQL, but does this.
select * from (select my SQL) where
This means that it starts with collecting all the data and then filters it. Usually this isn't a problem, but my current SQL has a lot of joins on big tables so it is incredibly slow.
Is there a way to force Cognos to just add my filters to a where clause without an extra select statement?
select * from my SQL where
This would make my report a lot faster.
Try to include your prompt in your SQL using macros #prompt # and #promptmany #. Don't forget to set default values to make in optional.
P.S. Try to avoid direct SQL usage in Cognos reports.

Querying infopath form library

Is there a tool that allows querying (and aggregating data from) a library of infopath forms in MOSS? I can't use promoted fields, since some of the items I want to query are in repeating groups which (AFAIK) cannot be promoted. So I have to query the underlying XML.
I realize I can write custom code that iterates through the forms and perfoms a xpath query on each, I just wonder if there is an existing tool or functionality for this?
You can use the lists.asmx web service to retrieve the XML and work with it within reporting services or even within Excel.
Look at using XML as a data source in SQL reporting services
if you export the list to a spreadsheet you should also be able to work as you would any other spreadsheet. It all depends on what you want to do with the information and where it will end ultimately.
You could also look at tying the data into dundas charts web parts

Resources