# Calculate billing for different namespace

**URL:** <https://community.amazonquick.com/t/calculate-billing-for-different-namespace/15640>\
**Category:** Q&A\
**Tags:** namespace, pricing, usage-and-billing, quick-sight\
**Created:** [July 12, 2023, 12:58pm UTC](https://community.amazonquick.com/t/calculate-billing-for-different-namespace/15640 "2023-07-12T12:58:06Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![swapnilbhande](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@swapnilbhande](https://community.amazonquick.com/u/swapnilbhande)\
**Post date:** [July 12, 2023, 12:58pm UTC](https://community.amazonquick.com/t/calculate-billing-for-different-namespace/15640/1 "2023-07-12T12:58:06Z")

</div>

We have created diffrent namespace for diffrent organizations and under those namespace we created users. Now we need to calculate billing/costing for each namespace, so how we can caluclate billing for each namespace.

---

<div class="post-metadata">

**Author:** ![Xing](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/xing/32/8097_2.png) [@Xing](https://community.amazonquick.com/u/Xing)\
**Post date:** [July 12, 2023, 1:54pm UTC](https://community.amazonquick.com/t/calculate-billing-for-different-namespace/15640/2 "2023-07-12T13:54:59Z")

</div>

Hello there, namespace is a great tool to organize/isolate users. For the visibility of Quick Sight cost by namespace, I would refer you to a recent aws workshop, Advanced Quick Sight Cost and Usage Analysis,  
[https://www.youtube.com/watch?v=pW7bntMTIOc](https://www.youtube.com/watch?v=pW7bntMTIOc). This workshop covers the CUR data as a foundation for many cost and usage analysis using SQL, it also covers a Cost Intelligence Dashboard(CID) which has a predefined view based namespace, see

 ![image](https://d1wl4jav5dp96l.cloudfront.net/original/2X/2/2ef0f63c031ca635681131e03a1c91be70f02fbd.jpeg)

---

<div class="post-metadata">

**Author:** ![swapnilbhande](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@swapnilbhande](https://community.amazonquick.com/u/swapnilbhande)\
**Post date:** [July 17, 2023, 9:38am UTC](https://community.amazonquick.com/t/calculate-billing-for-different-namespace/15640/3 "2023-07-17T09:38:38Z")

</div>

Thanks Xing for sharing link…I wanted to calculate the cost for Namespace and in above video there any nothing mention about namespace costing. could you please help me to calculate namespace costing. I have 3 namespace created and those are using by different agencies and I need to calculate billing for them

---

<div class="post-metadata">

**Author:** ![Xing](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/xing/32/8097_2.png) [@Xing](https://community.amazonquick.com/u/Xing)\
**Post date:** [July 18, 2023, 7:22pm UTC](https://community.amazonquick.com/t/calculate-billing-for-different-namespace/15640/4 "2023-07-18T19:22:55Z")

</div>

The video provided a general guidance on using CUR with custom query. You would need to develop such query based user arn which has namespace in it.

---

<div class="post-metadata">

**Author:** ![swapnilbhande](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@swapnilbhande](https://community.amazonquick.com/u/swapnilbhande)\
**Post date:** [July 24, 2023, 10:55am UTC](https://community.amazonquick.com/t/calculate-billing-for-different-namespace/15640/5 "2023-07-24T10:55:15Z")

</div>

Thanks @Xing , We have finally calculated the cost per session per namespace.

This is one part we calculated. Now I would like to calculate SPICE usage by namespace, ex: which namespace used how many gb data from spice that I would like to calculate.

Please help me with that.

Thanks for your help

---

<div class="post-metadata">

**Author:** ![Xing](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/xing/32/8097_2.png) [@Xing](https://community.amazonquick.com/u/Xing)\
**Post date:** [July 25, 2023, 6:04pm UTC](https://community.amazonquick.com/t/calculate-billing-for-different-namespace/15640/6 "2023-07-25T18:04:04Z")

</div>

Unfortunately there is no out of box way to calculate SPICE usage by namespace. However if you have a mapping on dataset and namespace, you can use dataset API call, describe\_dataset API, to get the **ConsumedSpiceCapacityInBytes** , see [DataSet - Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_DataSet.html)

---

<div class="post-metadata">

**Author:** ![swapnilbhande](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@swapnilbhande](https://community.amazonquick.com/u/swapnilbhande)\
**Post date:** [July 27, 2023, 8:57am UTC](https://community.amazonquick.com/t/calculate-billing-for-different-namespace/15640/7 "2023-07-27T08:57:27Z")

</div>

Thanks @Xing, we are working on the solution which you provided.

---

<div class="post-metadata">

**Author:** ![swapnilbhande](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@swapnilbhande](https://community.amazonquick.com/u/swapnilbhande)\
**Post date:** [July 27, 2023, 9:02am UTC](https://community.amazonquick.com/t/calculate-billing-for-different-namespace/15640/8 "2023-07-27T09:02:35Z")

</div>

@Xing  
we need to share dashboard from one namespace to another namespace, is there any way to share dashboard from one namespace to another namespace.

---

<div class="post-metadata">

**Author:** ![Koushik\_Muthanna](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/koushik_muthanna/32/3290_2.png) [@Koushik\_Muthanna](https://community.amazonquick.com/u/Koushik_Muthanna)\
**Post date:** [July 27, 2023, 10:28am UTC](https://community.amazonquick.com/t/calculate-billing-for-different-namespace/15640/9 "2023-07-27T10:28:46Z")

</div>

have a look at this : [Govern and manage permissions of Amazon QuickSight assets with the new centralized asset management console | AWS Big Data Blog](https://aws.amazon.com/blogs/big-data/govern-and-manage-permissions-of-amazon-quicksight-assets-with-the-new-centralized-asset-management-console/)

---

<div class="post-metadata">

**Author:** ![swapnilbhande](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@swapnilbhande](https://community.amazonquick.com/u/swapnilbhande)\
**Post date:** [July 27, 2023, 11:04am UTC](https://community.amazonquick.com/t/calculate-billing-for-different-namespace/15640/10 "2023-07-27T11:04:34Z")

</div>

@Koushik_Muthanna Thank you for your response. I can share my dashboards and all other things to another namespace.

---

<div class="post-metadata">

**Author:** ![Xing](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/xing/32/8097_2.png) [@Xing](https://community.amazonquick.com/u/Xing)\
**Post date:** [July 27, 2023, 2:56pm UTC](https://community.amazonquick.com/t/calculate-billing-for-different-namespace/15640/11 "2023-07-27T14:56:05Z")

</div>

Have you tried with Quick Sight template?

---

<div class="post-metadata">

**Author:** ![swapnilbhande](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@swapnilbhande](https://community.amazonquick.com/u/swapnilbhande)\
**Post date:** [July 28, 2023, 7:53am UTC](https://community.amazonquick.com/t/calculate-billing-for-different-namespace/15640/12 "2023-07-28T07:53:24Z")

</div>

@Xing I couldn’t understand about Quicksight template? what do you mean Quick Sight templat

---

<div class="post-metadata">

**Author:** ![swapnilbhande](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@swapnilbhande](https://community.amazonquick.com/u/swapnilbhande)\
**Post date:** [July 31, 2023, 5:29am UTC](https://community.amazonquick.com/t/calculate-billing-for-different-namespace/15640/13 "2023-07-31T05:29:21Z")

</div>

Hello Guys,

I am facing one issue related to dashboard sharing from one namespace to another namespace i.e. “The underlying dataset cannot be viewed from this namespace”.

I applied rls security for dashboard in first namespace and shared with another namespace. when I opened dashboard in another namespace then above error given. dont know why it is showing this error. I added user and given permission thorugh rls for your information.

Note: When I shared dashboard from one namespace to another namespace without rls then I can see records in dashboard but when I applied rls security then it is giving me error: “The underlying dataset cannot be viewed from this namespace”

@Koushik_Muthanna @Xing

---

<div class="post-metadata">

**Author:** ![swapnilbhande](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@swapnilbhande](https://community.amazonquick.com/u/swapnilbhande)\
**Post date:** [July 31, 2023, 1:20pm UTC](https://community.amazonquick.com/t/calculate-billing-for-different-namespace/15640/14 "2023-07-31T13:20:20Z")

</div>

> [@swapnilbhande](#):
>
> The underlying dataset cannot be viewed from this namespace

Hello Guys,

Got the answers for above error as I am using UserARN instead of Username while applying RLS

> **[Using row-level security (RLS) with user-based rules to restrict access to a...](https://docs.aws.amazon.com/quicksight/latest/user/restrict-access-to-a-data-set-using-row-level-security.html)**
>
> Restrict access to an existing dataset by using row-level security (RLS) with rules based on username or group in Amazon QuickSight.

Note: I used only UserARN and region, we can apply RLS without using GroupARN as well.

---

<div class="post-metadata">

**Author:** ![Xing](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/xing/32/8097_2.png) [@Xing](https://community.amazonquick.com/u/Xing)\
**Post date:** [July 31, 2023, 7:18pm UTC](https://community.amazonquick.com/t/calculate-billing-for-different-namespace/15640/15 "2023-07-31T19:18:19Z")

</div>

Here is the reference for Quick Sight template:[Template - Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_Template.html)
