Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

Line chart for displaying last 24 hours temperature?

I have table storage as data source. Data is IoT data and every 10 seconds I get new row with timestamp.

I can succesfully connect with Power BI Desktop. I have changed data type as Date/Time. Column name is Timestamp and values is in format of "10/12/2016 13:08:30". Another column is temperature in decimal format like "23.0".

 

Now how to make line chart where I can see how temperature get changing over time? I would like to see by latest 24 hour?

I understand and Timestamp is Axis and Temperature is Value, but I get values for every 10 seconds. I would like to show by 1 hour and I like to get displayed only last 24 hour.

 

 

 

  • Anonymous

     

    In this scenario, since yout timestamps are continuous,you can directly put the timestamps on X-axis and select the Type into "Categorical".

     

     

    To group your data on Hour, you need to add columns like "Date Hour", "Date". Then build a hierarchy like "Date->Date Hour->Date Time" and put the hierarchy into the chart.

     

    Regards,

    Simon Hou

     

2 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Icon for Community Champion rankCommunity Champion

    I am thinking that you could use Grouping for this possibly? Perhaps a calculated column that is the number of hours in the past (0, 1, 2, 3) and group on that?

  • v-sihou-msft's avatar
    v-sihou-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Anonymous

     

    In this scenario, since yout timestamps are continuous,you can directly put the timestamps on X-axis and select the Type into "Categorical".

     

     

    To group your data on Hour, you need to add columns like "Date Hour", "Date". Then build a hierarchy like "Date->Date Hour->Date Time" and put the hierarchy into the chart.

     

    Regards,

    Simon Hou