> For the complete documentation index, see [llms.txt](https://docs.nedyx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nedyx.com/nedyx/clearlines-functions/range-functions/crossjoin.md).

# CROSSJOIN

#### Syntax <a href="#syntax" id="syntax"></a>

**CROSSJOIN**(*range1*; *range2*; ...; *rangeN*)

* *range1, range2, ..., rangeN* - the ranges to be combined - ***Value type**: range of any value*

#### Remarks <a href="#remarks" id="remarks"></a>

* The function returns a row-wise cartesian product combination of all rows from all specified ranges.
* Each row of the first range is combined with each row of all other ranges, resulting in a complete set of all possible combinations.
* This function is useful for creating master templates with all possible combinations of dimensions, generating complete date lists for periods, creating permutations for testing, or generating hierarchical reporting structures.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nedyx.com/nedyx/clearlines-functions/range-functions/crossjoin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
