--- title: "How do I see where a value in my results came from?" slug: "how-do-i-see-where-a-value-in-my-query-results-came-from" updated: 2026-11-24T13:59:14Z published: 2026-11-24T13:59:14Z canonical: "support.lusid.com/how-do-i-see-where-a-value-in-my-query-results-came-from" --- > ## 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. # How do I see where a value in my results came from? When a number in your results looks wrong, the first question is where it came from. The Luminesce Query Editor can show you exactly how a result was put together: the providers it read, the joins and filters along the way, and what each calculated column is worked out from, even through views and other providers. If Candela is available in your domain, it can explain it all in plain words. ## Prerequisites - Access to the Luminesce Query Editor in the LUSID web app, under **Data Virtualisation > Query Editor**. - Lineage turned on, which it is by default. If it's off, turn on **Show query results lineage in editor** on the **Data Virtualisation > Settings** page, then run the query again. ## Methods ### Method 1: See how the whole result was put together 1. Run the query. 2. On the toolbar above the results, select **Show table lineage**. It appears when Luminesce has lineage for the result. A window shows the result as a diagram, from the providers it reads through every join, filter and calculation to the result itself. - Select a part of the diagram to see its **Node details**, such as the formula behind a calculated column, and its **Documentation**. - The **Legend** says what each kind of part is. - Use **Expand all nodes** and **Collapse all nodes** to show or hide the detail of a large diagram. Each query in a query set has its own lineage. Select the query's tab in the results first. For example, this query reads one portfolio scope's holdings into a variable, joins them to their instruments, and totals the cost by asset class. Its lineage shows both providers, the variable, the filter on the scope and the join: ```sql @@scope = select 'Analytics-Examples'; @holdings =    select PortfolioCode, LusidInstrumentId, Units, CostAmountPortfolioCurrency    from Lusid.Portfolio.Holding    where PortfolioScope = @@scope      ; select     i.InferredAssetClass                                          as AssetClass,     count(distinct h.PortfolioCode)                               as Portfolios,     count(distinct h.LusidInstrumentId)                           as Instruments,     sum(h.CostAmountPortfolioCurrency)                            as Cost from @holdings h inner join Lusid.Instrument i    on i.LusidInstrumentId = h.LusidInstrumentId group by i.InferredAssetClass order by Cost desc ``` ![](https://cdn.document360.io/d575ad81-c0ed-4980-bbd1-d59ac5c3de82/Images/Documentation/image-DS2ZTV0Q.png?sv=2026-02-06&spr=https&st=2026-11-24T14%3A55%3A11Z&se=2026-11-24T15%3A55%3A11Z&sr=b&sp=r&sig=vuKEAtLoRj1RzXq11ukDNgPUDBl%2BLRAyauTpFyqYrKY%3D) ### Method 2: Explain one column A marker in a column's heading shows it's worked out rather than read straight from a provider. Hover over it to see which: - **Calculation**: calculated from other values. - **Aggregation**: a total, count or other aggregate. To see what a column is worked out from, open the column's menu and select **Explain**. A window shows the column's lineage as a diagram, in the same way as Method 1. ![](https://cdn.document360.io/d575ad81-c0ed-4980-bbd1-d59ac5c3de82/Images/Documentation/image-KPS9CT5D.png?sv=2026-02-06&spr=https&st=2026-11-24T14%3A55%3A11Z&se=2026-11-24T15%3A55%3A11Z&sr=b&sp=r&sig=wAMiHDpfQL8zwAdaKDjVROG7QdDVxfZTrlGCEUvNHjU%3D) ### Method 3: Ask Candela to explain it In the lineage window, switch from **Graph** to **Explain**. Candela, FINBOURNE's AI agent, describes in plain words how the result or column was arrived at, and you can ask it follow-up questions. Candela availability Candela is currently available to some customers only. If it isn't available in your domain, the lineage window shows only **Graph**, and Methods 1 and 2 still work. ![](https://cdn.document360.io/d575ad81-c0ed-4980-bbd1-d59ac5c3de82/Images/Documentation/image-PIU7YDKG.png?sv=2026-02-06&spr=https&st=2026-11-24T14%3A55%3A11Z&se=2026-11-24T15%3A55%3A11Z&sr=b&sp=r&sig=SniKer%2FAaFdU%2B2zi3tuAwfZnsyotA%2B5TOkLFv0RGQ%2FE%3D) ### Method 4: See a provider's lineage before you query it Views and some providers show their lineage in the Catalogue too, before you run anything. Select **Show table lineage** on a provider's row, or **Show field lineage** on one of its fields. See [How do I find providers and fields in the catalogue?](/v1/docs/how-do-i-find-providers-and-fields-in-the-catalogue#method-7-see-where-a-providers-data-comes-from) ## Troubleshooting ### Show table lineage isn't on the toolbar Luminesce has no lineage for this result. Check that **Show query results lineage in editor** is on, then run the query again: lineage is worked out when the query runs, so results from before you turned it on don't have it. ### Explain isn't in a column's menu Luminesce can't say where that column's values come from, for example because the provider doesn't describe its own columns. ## Related articles - [How do I format results?](/v1/docs/how-do-i-format-results) - [How do I see dependencies for Luminesce providers and custom views?](/v1/docs/how-do-i-see-dependencies-for-luminesce-providers-and-custom-views) - [How do I see where a value in my results came from?](/v1/docs/how-do-i-see-where-a-value-in-my-results-came-from), for lineage in LumiCode