How-To Guides
...
Create Your Own Report with Re...
Exploring Your Data
9 min
this is the third step of creating your own report with the reporting module in this section, we will explore data using example cases start exploring your data click on the table name you just created in the list of available tables by default, youâll be presented with a table view find how many records there are in the table letâs walk through a basic query to get the count of all records in our table first, weâll need to change the since filter to capture the range of our data you can use simple phrases to apply these filters, like â3 years agoâ the upper limit for time, the until filter, defaults to now , which may or may not be what you want look for the metrics section under the group by header, and start typing count youâll see a list of metrics matching what you type select the count( ) metric, then click the green query button near the top of the explore youâll see your results in the table count the number of records by type letâs group this by the weather description field to get the count of records by the type of weather recorded by adding it to the group by section and run the query find the top 10 times and places that recorded the highest temperature in 2015 we replace weather description with latitude, longitude, and measurement date in the group by section and replace count( ) with max measurement flag the max measurement flag metric was created when we checked the box under max and next to the measurement flag field, indicating that this field was numeric and that we wanted to find its maximum value when grouped by specific fields in our case, measurement flag is the value of the measurement taken, which clearly depends on the type of measurement (the researchers recorded different values for precipitation and temperature) therefore, we must filter our query only on records where the weather description is equal to âmaximum temperature,â which we do in the filters section at the bottom of the explore finally, since we only care about the top 10 measurements, we limit our results to 10 records using the row limit option under the options header we click query and get the following results in this dataset, the maximum temperature is recorded in tenths of a degree celsius the top value of 1370, measured in the middle of nevada, is equal to 137 c, or roughly 278 degrees f itâs unlikely this value was correctly recorded weâve already investigated some outliers with superset, but this just scratches the surface of what we can do you may want to do a couple more things with this measure the default formatting shows values like 1 37k, which may be difficult for some users to read you may likely want to see the full, comma separated value you can change the formatting of any measure by editing its config ( edit table config > list sql metric > edit metric > d3format ) moreover, you may want to see the temperature measurements in plain degrees c, not tenths of a degree or you may want to convert the temperature to degrees fahrenheit you can change the sql that gets executed against the database, baking the logic into the measure itself ( edit table config > list sql metric > edit metric > sql expression ) change the visualization of the data letâs create a better visualization of this data and add it to a dashboard we change the chart type to distribution bar chart our filter on maximum temperature measurements was retained, but the query and formatting options are dependent on the chart type, so youâll have to set the values again you should note the extensive formatting options for this chart the ability to set axis labels, margins, ticks, etc to make the data presentable to a broad audience, youâll want to apply many of these to slices that end up in dashboards for now, though, we run our query and get the following chart