# AnalyticsData Class

> AnalyticsData class in the TX Sheet Control .NET API: Detached tabular snapshot for a direct dashboard connector. Dates use ISO strings.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Namespace:** `TXTextControl.TXSheetControl.Server`
- **Package:** `TXTextControl.TXSheetControl.Server` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > AnalyticsData Class
- **802 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsdata/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsdata/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsdata/llms-full.txt

---

Detached tabular snapshot for a direct dashboard connector. Dates use ISO strings.

### Syntax

```csharp
public class AnalyticsData
```

### Members

#### Constructors

| Constructor | Description |
|---|---|
| [Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsdata/constructor/llms-full.txt) |  |

#### Properties

| Property | Description |
|---|---|
| [Columns](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsdata/columns-property/llms-full.txt) | Unique stable field IDs, in row order (maximum 256). |
| [Rows](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsdata/rows-property/llms-full.txt) | Rectangular scalar rows; at most 250,000 cells. Not saved in workbook files. |

### Examples

Create a working report from bounded HTTP sales data. Supply an application-owned HttpClient and service URL; scope cached data to its actual audience.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<AnalyticsResult> BuildAnalyticsDataExampleAsync(ServerSheetControl control)
{
    var book = control.Workbook;
    var sheet = await book.Sheets.AtAsync(0);
    await book.Analytics.SetSourceAsync(new AnalyticsSource { Id = "sales", Name = "Regional sales", ConnectionId = "sales-service", QueryId = "regional-sales" });

    var snapshot = new AnalyticsData { Columns = ["Region", "Revenue"], Rows = [["North", 42000], ["South", 38500]] };
    await book.Analytics.SetDataAsync("sales", snapshot);
    return await book.Analytics.QueryAsync(new AnalyticsQuery { SourceId = "sales", Dimensions = ["Region"], Measures = [new AnalyticsMeasure { Field = "Revenue", Aggregation = "SUM", Alias = "Revenue" }] });
}
```

### See Also

- [TXTextControl.TXSheetControl.Server Namespace](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/llms-full.txt)
- [Creating Dashboards](https://docs.textcontrol.com/tx-sheet-control/dashboards/creating/llms-full.txt)

---

## In This Section

- [AnalyticsData.Columns Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsdata/columns-property/llms-full.txt): AnalyticsData.Columns property in the TX Sheet Control .NET API: Unique stable field IDs, in row order (maximum 256). Covers its type string[] and a C# example.
- [AnalyticsData Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsdata/constructor/llms-full.txt): AnalyticsData constructor in the TX Sheet Control .NET API, with its syntax, a C# example and remarks on awaiting tasks and handles.
- [AnalyticsData.Rows Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsdata/rows-property/llms-full.txt): AnalyticsData.Rows property in the TX Sheet Control .NET API: Rectangular scalar rows; at most 250,000 cells. Not saved in workbook files.

---

## Nearby

- **Previous:** [AnalyticsCalculation.Window Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticscalculation/window-property/llms-full.txt)
- **Next:** [AnalyticsData Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/analyticsdata/constructor/llms-full.txt)
