This guide explains how to use the SQL queries in dune_queries.sql to create visualizations and dashboards in Dune Analytics.
- Log in to your Dune Analytics account at dune.com
- Navigate to the "Queries" section
- Click "New Query" to create a new query
- Copy and paste a query from
dune_queries.sqlinto the query editor - Click "Run" to execute the query
- Use the visualization options to create charts and graphs
After running a query, you can create visualizations by:
- Click on the "Visualize" tab
- Select the visualization type (e.g., Bar Chart, Line Chart, Pie Chart)
- Configure the visualization settings
- Click "Save" to save the visualization
- Latest Value: Counter visualization
- Latest Value: Counter visualization
- Latest Value: Counter visualization
- Breakdown: Bar chart with identity_provider on x-axis and users_count on y-axis
- Latest Value: Counter visualization
- Breakdown: Bar chart with radius_server on x-axis and requests_count on y-axis
To create a comprehensive dashboard:
- Create individual visualizations for each query
- Navigate to the "Dashboards" section
- Click "New Dashboard"
- Give your dashboard a name and description
- Click "Add Visualization" to add your saved visualizations
- Arrange the visualizations on the dashboard
- Click "Save" to save the dashboard
To share your dashboard with others:
- Navigate to your dashboard
- Click the "Share" button
- Choose whether to make it public or share with specific users
- Copy the link and share it with your team
Dune Analytics allows you to schedule automatic refreshes of your queries:
- Open a query
- Click on the "Schedule" button
- Select the refresh frequency
- Click "Save"
This ensures your visualizations always display the most recent data uploaded by the WayFi Dune Analytics Integration.
- Use appropriate chart types: Line charts for trends over time, bar charts for comparisons, pie charts for proportions
- Label your axes: Make sure your visualizations have clear labels
- Use consistent colors: Maintain a consistent color scheme across your dashboard
- Add context: Include titles and descriptions to explain what each visualization represents
- Filter data: Use date filters to focus on specific time periods
- Compare metrics: Create visualizations that compare related metrics to identify patterns
If your queries don't return the expected results:
- Check that the table names match your Dune Analytics setup
- The actual dataset names in Dune Analytics are:
- dune.wayfiwireless.dataset_wayfi_active_locations_30days
- dune.wayfiwireless.dataset_wayfi_identity_providers_offloading
- dune.wayfiwireless.dataset_wayfi_radius_serving
- dune.wayfiwireless.dataset_wayfi_total_gb_offloaded
- dune.wayfiwireless.dataset_wayfi_total_unique_sessions
- dune.wayfiwireless.dataset_wayfi_total_users_served
- The actual dataset names in Dune Analytics are:
- Verify that the column names match the CSV data structure
- Ensure that the data has been successfully uploaded to Dune Analytics
- Check the logs in the
logsdirectory for any upload errors