Solved

GoodData.CN Community Edition / MAQL metric calculation

  • 13 May 2021
  • 3 replies
  • 42 views

Hi

This article provides an example of writing a request to the system - https://www.gooddata.com/developers/cloud-native-community-edition/ like 

Active Users:
SELECT COUNT(User) WHERE User Status = "Active"


We have installed the system and cannot find a way to make such a request. Are they available there? Where could we go wrong?

Thanks!

icon

Best answer by Iva Gasparekova 13 May 2021, 09:08

Hi,

You can create custom measure via our API. You can find some examples in the article as well. Just be sue to use the right attributes and syntax of your measure/metric.

Simple measures can be created directly from your Analyze tab as described here.

View original

3 replies

Userlevel 2

Hi,

You can create custom measure via our API. You can find some examples in the article as well. Just be sue to use the right attributes and syntax of your measure/metric.

Simple measures can be created directly from your Analyze tab as described here.

Userlevel 2

You are very welcome!

Good question, actually. You can generate an API token. Once you obtain it, you can add it to the header of your HTTP request:

Authorization: Bearer $GDC_API_TOKEN

 

Thank you so much, everything became clear!


I apologize that the question may not be in the correct topic.
Is it possible to pass an authorization parameter in an iframe? So that the user does not enter a login-password there, or is it possible to use a shared access account. By token, for example.

Reply