--- title: "Lusid.Portfolio.Valuation.Measure" slug: "lusidportfoliovaluationmeasure" tags: ["luminesce ", "provider", "valuation", "metric", "queryable key"] updated: 2024-08-21T12:58:30Z published: 2024-08-21T12:58:30Z canonical: "support.lusid.com/lusidportfoliovaluationmeasure" --- > ## 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.Portfolio.Valuation.Measure | **Type** | **Read/write** | **Author** | **Availability** | | --- | --- | --- | --- | | [Data provider](/v1/docs/what-are-a-data-provider-and-a-direct-provider) | Read | Finbourne | Provided with LUSID | The `Lusid.Portfolio.Valuation.Measure` provider enables you to write a [Luminesce SQL query](/v1/docs/understanding-the-luminesce-sql-query-syntax) that retrieves details about all the measures you can report when you perform a portfolio [valuation](/v1/docs/valuations). Note that measures are also known as metrics or queryable keys. > **Note:** The LUSID user running the query must have sufficient [access control permissions](/v1/docs/creating-policies-to-control-access-to-providers-for-different-luminesce-end-users) to both use the provider *and* read valuation data stored in LUSID. This should automatically be the case if you are the domain owner. **See also:** [Lusid.Portfolio.Valuation](/v1/docs/lusidportfoliovaluation), [Lusid.Valuation.Recipe](/v1/docs/lusidvaluationrecipe), [Lusid.Logs.Valuation.Manifest](/v1/docs/how-do-i-access-a-valuation-manifest) ## Basic usage ```sql select * from Lusid.Portfolio.Valuation.Measure where ; ``` ## Query parameters `Lusid.Portfolio.Valuation.Measure` 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.Portfolio.Valuation.Measure' and FieldType = 'Parameter'; ``` ## Data fields By default, `Lusid.Portfolio.Valuation.Measure` 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.Portfolio.Valuation.Measure' and FieldType = 'Column'; ``` > **Note:** Fields marked 'main' are returned by queries that start `select ^ from Lusid.Portfolio.Valuation.Measure...` ## Examples > **Note:** For more example Luminesce SQL queries, visit our [Github repo](https://github.com/finbourne/luminesce-examples/tree/master/examples). ### Example 1: Retrieve the first twenty portfolio valuation measures ```sql select * from Lusid.Portfolio.Valuation.Measure limit 20 ``` ### Example 2: Retrieve all portfolio valuation measures not in the instrument domain ```sql select * from Lusid.Portfolio.Valuation.Measure where MeasureName not like 'Instrument%' ``` ### Example 3: Retrieve all portfolio valuation measures that have a sum operation ```sql select * from Lusid.Portfolio.Valuation.Measure where SupportedOperations like '%Sum%' ```