---
title: "Lusid.Fund.ValuationPointData.ShareClass"
slug: "lusidfundvaluationpointdatashareclass"
updated: 2024-10-17T16:03:11Z
published: 2024-10-17T16:03:11Z
canonical: "support.lusid.com/lusidfundvaluationpointdatashareclass"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://support.lusid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Lusid.Fund.ValuationPointData.ShareClass

| **Type** | **Read/write** | **Author** | **Availability** |
| --- | --- | --- | --- |
| [Data provider](/v1/docs/what-are-a-data-provider-and-a-direct-provider) | Read | FINBOURNE | Provided with LUSID |

Providing you have sufficient [access control permissions](/v1/docs/creating-policies-to-control-access-to-providers-for-different-luminesce-end-users), the `Lusid.Fund.ValuationPointData.ShareClass` provider enables you to write a [Luminesce SQL query](/v1/docs/understanding-the-luminesce-sql-query-syntax) that retrieves a summary of share class-level valuation data.

You can join this provider to others to retrieve more information:

- Join to [Lusid.Fund.ValuationPointData](/v1/docs/lusidfundvaluationpointdatabreakdown) to retrieve a fund-level summary of GAV and NAV.
- Join to [Lusid.Fund.ValuationPointData.ShareClass.Breakdown](/v1/docs/lusidfundvaluationpointdatashareclassbreakdown) to retrieve a share class-level breakdown of dealing, P&L and backout activity.
- Join to `Lusid.Fund.ValuationPointData.ShareClass.Fee` (coming soon) to retrieve share class-level fee accruals.

## Basic usage

You must specify an end date that is either:

- An arbitrary datetime using the `EndDate` parameter.
- A [pre-defined valuation point](/v1/docs/lusidfundvaluationpointwriter) using the `DiaryEntryCode` parameter.

```sql
select * from Lusid.Fund.ValuationPointData.ShareClass
where FundScope = <scope> 
and FundCode = <code>
and <date-or-diary-entry>
;
```

## Query parameters

`Lusid.Fund.ValuationPointData.ShareClass` has parameters that enable you to filter or refine a query.

To list available parameters, their data types, default values, and an explanation for each, run the following query using a [suitable tool](/v1/docs/what-tools-are-available-to-write-luminesce-queries):

```sql
select FieldName, DataType, ParamDefaultValue, Description from Sys.Field where TableName = 'Lusid.Fund.ValuationPointData.ShareClass' and FieldType = 'Parameter';
```

## Data fields

By default, `Lusid.Fund.ValuationPointData.ShareClass` returns a table of data populated with particular fields (columns). You can return a subset of these fields.

To list fields available to return, their data types, whether fields are considered 'main', and an explanation for each, run the following query using a [suitable tool](/v1/docs/what-tools-are-available-to-write-luminesce-queries):

```sql
select FieldName, DataType, IsMain, IsPrimaryKey, SampleValues, Description from Sys.Field where TableName = 'Lusid.Fund.ValuationPointData.ShareClass' and FieldType = 'Column';
```

> **Note:** Fields marked 'main' are returned by queries that select a `^` character, for example `select ^ from Lusid.Fund.ValuationPointData.ShareClass`.

## Examples

> **Note:** For more example Luminesce SQL queries, visit our [Github repo](https://github.com/finbourne/luminesce-examples/tree/master/examples/lusid/abor).

### Example 1: Retrieve a summary at an arbitrary point in time

You can use the `EndDate` parameter to retrieve a share class-level summary at an arbitrary point in time.

```sql
select * from Lusid.Fund.ValuationPointData.ShareClass
where FundScope = 'Growth'
and FundCode = 'Equities'
and EndDate = #2024-06-13 17:00:00#
;
```

### Example 2: Retrieve a summary at an official valuation point

[Publishing an official fund valuation](/v1/docs/lusidfundvaluationpointdata#example-2-publish-an-official-fund-valuation) is a workflow with checks and balances, not all of which is possible using Luminesce.

Assuming an accounting diary entry of type `ValuationPoint` exists, you can use the `DiaryEntryCode` parameter to retrieve a share class-level summary at an official valuation point.

```sql
select * from Lusid.Fund.ValuationPointData.ShareClass
where FundScope = 'Growth'
and FundCode = 'Equities'
and DiaryEntryCode = '13June2024-5pm-asAt7pm'
;
```

### Example 3: Retrieve a fund summary as well as a share class summary

You can join this provider to [Lusid.Fund.ValuationPointData](/v1/docs/lusidfundvaluationpointdata) in order to also retrieve a fund-level summary. Note you must specify the same `EndDate` or `DiaryEntryCode` for both providers.

```sql
select
    d.GAV as 'FundGAV', d.NAV as 'FundNAV',
    f.*
from
    Lusid.Fund.ValuationPointData d
    inner join Lusid.Fund.ValuationPointData.ShareClass f
        on d.FundScope = f.FundScope
        and d.FundCode = f.FundCode
where
    d.FundScope = 'Growth'
    and d.FundCode = 'Equities' 
    and d.DiaryEntryCode = '13June2024-5pm-asAt7pm'
    and f.DiaryEntryCode = '13June2024-5pm-asAt7pm'
;
```
