# Multi-Tenant Analysis/Dashboard with optional dataset

**URL:** <https://community.amazonquick.com/t/multi-tenant-analysis-dashboard-with-optional-dataset/17103>\
**Category:** Q&A\
**Tags:** analysis, qls-multi-env, data-source, quick-sight\
**Created:** [August 17, 2023, 12:48am UTC](https://community.amazonquick.com/t/multi-tenant-analysis-dashboard-with-optional-dataset/17103 "2023-08-17T00:48:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tb102122](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@tb102122](https://community.amazonquick.com/u/tb102122)\
**Post date:** [August 17, 2023, 12:48am UTC](https://community.amazonquick.com/t/multi-tenant-analysis-dashboard-with-optional-dataset/17103/1 "2023-08-17T00:48:37Z")

</div>

Hey all,

I am working currently on a multi-tenant reporting. One of the challanges I am facing that the solutions should be generic for all users but due to different functionality based on used features some dataset will be options. E.g. Tenant A has dataset 1 and dataset 2 but Tenant B only has dataset 1.

Is there a way to make the analysis dynamic depending on the available datasets. using one analysis per dataset is not practical since user does not like to navigate between different dashboards.

One thought which I had was to use the template definition to have the different possible combinations separated per sheet but I am not sure if I can pull multiple sheets from different analysis’s into one template. [TemplateVersionDefinition - Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_TemplateVersionDefinition.html)

Looking forward for your comments and suggestions.

Cheers Tobias

---

<div class="post-metadata">

**Author:** ![Wakana](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/wakana/32/3520_2.png) [@Wakana](https://community.amazonquick.com/u/Wakana)\
**Post date:** [August 17, 2023, 3:46am UTC](https://community.amazonquick.com/t/multi-tenant-analysis-dashboard-with-optional-dataset/17103/2 "2023-08-17T03:46:04Z")

</div>

hi @tb102122,

thank you for your inquiry.

I am having difficulties to understand what requirement it is for analysis with dataset. how would you like to make analysis dynamic based on available datasets? One analysis can have multiple datasets, just that one visual per dataset. also template does not have concept of sheets. so you can’t have combinations per sheet.

kind regards,  
Wakana

---

<div class="post-metadata">

**Author:** ![tb102122](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@tb102122](https://community.amazonquick.com/u/tb102122)\
**Post date:** [August 17, 2023, 4:11am UTC](https://community.amazonquick.com/t/multi-tenant-analysis-dashboard-with-optional-dataset/17103/3 "2023-08-17T04:11:18Z")

</div>

Hey @Wakana,  
sorry if my explanation was not clear enough.  
The idea would be the following prepare the followong

- analysis A which contains all visuals/sheets and the dataset based on feature A.
- analysis B which contains all visuals/sheets and the dataset based on feature B.

So if a customer is using feature A & B than we create a dashboard from analysis A&B.  
For a customer using only feature A the dashboard will only contain the analysis A.

If sheets are not supported how should I use the element sheets from the above link: [TemplateVersionDefinition - Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_TemplateVersionDefinition.html)

> **Sheets**  
> An array of sheet definitions for a template.  
> Type: Array of [SheetDefinition](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_SheetDefinition.html) objects  
> Array Members: Maximum number of 20 items.  
> Required: No

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![Wakana](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/wakana/32/3520_2.png) [@Wakana](https://community.amazonquick.com/u/Wakana)\
**Post date:** [August 17, 2023, 5:24am UTC](https://community.amazonquick.com/t/multi-tenant-analysis-dashboard-with-optional-dataset/17103/4 "2023-08-17T05:24:13Z")

</div>

hi @tb102122

thank you for the detailed explanation.

yes, so we have new API released late last year which can export all the visual information via JSON. so using [describe-analysis-defition](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_DescribeAnalysisDefinition.html) or [describe-dashboard-defition](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_DescribeDashboardDefinition.html) API, you will have ‘Definition’ which contains all the visual information including sheets. you can use this when creating analysis/dashbaord. for the same concept, Template has the Definition parameter as well to be able to specify visual information in [creating a template](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_CreateTemplate.html) and in managing a template.

I think you can use this JSON definition to create analysis or dashboaord directly (or through Template) depending on your customer’s requirement. the blog for this new API is here : [New Amazon QuickSight API Capabilities to Accelerate Your BI Transformation | AWS News Blog](https://aws.amazon.com/jp/blogs/aws/new-amazon-quicksight-api-capabilities-to-accelerate-your-bi-transformation/)

hope this helps.

kind regards,  
Wakana

---

<div class="post-metadata">

**Author:** ![tb102122](https://avatars.discourse-cdn.com/v4/letter/t/ce7236/32.png) [@tb102122](https://community.amazonquick.com/u/tb102122)\
**Post date:** [August 18, 2023, 10:48am UTC](https://community.amazonquick.com/t/multi-tenant-analysis-dashboard-with-optional-dataset/17103/5 "2023-08-18T10:48:51Z")

</div>

Looks like it will work I will get back if I have some more questions.  
Thanks for your help!
