Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way to show live and data within specific date range to Power BI Report #342

Open
ismaan1998 opened this issue Nov 11, 2021 · 0 comments
Open

Comments

@ismaan1998
Copy link

ismaan1998 commented Nov 11, 2021

Hi Team,

I am looking for a way to show live data and data within a specific date range to Power BI Report.

What we tried -

  1. Copied the custom query from TSI
  2. Connected to Power BI
  3. Added query parameters in Power BI Desktop for start and end date.
let
//create variables for start and end times
start = DateTime.ToText(StartDateTime),
end = DateTime.ToText(EndDateTime),

 

queryPart1 = "{""storeType"":""WarmStore"",""isSearchSpanRelative"":true,""clientDataType"":""RDX_20200713_Q"",""environmentFqdn"":""someid.env.timeseries.azure.com"",
        ""queries"":[
            {""getEvents"":
            {""searchSpan"":
            {""from"":""",
queryPart2 = start,
queryPart3 = """,""to"":""",
queryPart4 = end,
queryPart5 = """},",
queryPart6 = """timeSeriesId"":[""edgedevicename"",""sensorname""],""take"":250000}}]}",
//combine individual sections of query into one
    finalQuery = Text.Combine({queryPart1,queryPart2,queryPart3,queryPart4,queryPart5,queryPart6}),
    Source = AzureTimeSeriesInsights.Contents([JsonPayload = finalQuery])
in
    Source
  1. Got the live data on Power BI Desktop after refreshing the queries.
  2. We're also able to get the data for specific date ranges using Edit parameters

image

Problem

  1. It only works when we're using Power BI Desktop, We want to change the query parameters from the published Report.
  2. We've followed the Power BI Video but was not able to see the option for binding the parameter to any column as shown in the image below -
    image

Question -

Does Power BI support m query parameters for TSI Connector? if not, are there any recommendations from Microsoft to solve the problem mentioned above?

Thanks.

@ismaan1998 ismaan1998 changed the title Way to show live data to Power BI Way to show live and data within specific date range to Power BI Report Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant