qlikview

PHP PDO ODBC connection

心已入冬 提交于 2019-12-04 09:02:50
we are trying to create a connection with our SQL database trough ODBC in PHP. This is our current script: $cnx = new PDO("odbc:Driver={EFR};Server=localhost;Port:7004;Database=EFR;Uid=LcLfVJFLTKTCEHRO;Pwd=*********;"); The driver is working in Qlikview which also connects to this database. The driver is actually being found by PHP, but we think it just can't login. PHP is returning the following error: Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[IM001] SQLDriverConnect: 0 No transaction control system' in C:\Program Files (x86)\EasyPHP-12.1\www\index.php:2 Stack

Counting unique values in a column in pandas dataframe like in Qlik?

£可爱£侵袭症+ 提交于 2019-12-04 07:41:17
问题 If I have a table like this: df = pd.DataFrame({ 'hID': [101, 102, 103, 101, 102, 104, 105, 101], 'dID': [10, 11, 12, 10, 11, 10, 12, 10], 'uID': ['James', 'Henry', 'Abe', 'James', 'Henry', 'Brian', 'Claude', 'James'], 'mID': ['A', 'B', 'A', 'B', 'A', 'A', 'A', 'C'] }) I can do count(distinct hID) in Qlik to come up with count of 5 for unique hID. How do I do that in python using a pandas dataframe? Or maybe a numpy array? Similarly, if were to do count(hID) I will get 8 in Qlik. What is the

Handling multiple fact tables in Qlikview

99封情书 提交于 2019-12-04 01:24:20
问题 I have a PostgreSQL database containing various education data such school-level test scores and enrollment figures. I need to separate enrollment from test scores because the data is on different grains. Even though enrollment is on a different granularity from the test-score data, many of the dimensions are the same. For example, I have: ~ ---------------------------------------------------------------------------------~ | Test Scores Fact | |-------------|-----------|----------|-----------

Counting unique values in a column in pandas dataframe like in Qlik?

心不动则不痛 提交于 2019-12-02 15:27:38
If I have a table like this: df = pd.DataFrame({ 'hID': [101, 102, 103, 101, 102, 104, 105, 101], 'dID': [10, 11, 12, 10, 11, 10, 12, 10], 'uID': ['James', 'Henry', 'Abe', 'James', 'Henry', 'Brian', 'Claude', 'James'], 'mID': ['A', 'B', 'A', 'B', 'A', 'A', 'A', 'C'] }) I can do count(distinct hID) in Qlik to come up with count of 5 for unique hID. How do I do that in python using a pandas dataframe? Or maybe a numpy array? Similarly, if were to do count(hID) I will get 8 in Qlik. What is the equivalent way to do it in pandas? Count distict values, use nunique : df['hID'].nunique() 5 Count only

Filtering by a calculated measure involving multiple fields in Qlik Sense

喜你入骨 提交于 2019-11-29 15:40:21
I am trying to use a calculated measure as a way to filter my data, but it's looking more difficult than expected. Let me explain through an example. I have data of the following type, with two dimensions - one is a unique ID, the other a category - and four measures. Initial table My first step is to rank each element by its score, where the ranking is evaluated within the same category. I therefore create a new measure: =aggr(rank(sum(Score1)), Category, UniqueID) I do this for all three scores, resulting in three new calculated measures. My final calculated measure is the average of the

Qliksense REST offset pagination using loop

天涯浪子 提交于 2019-11-28 14:29:16
I need to paginate through all of the records from Hubspot API and I am getting stuck at offset pagination loop. According to the Hubspot's API documentation, there is no "total records" path available in the response but instead "has-more" filed tells us if there are any more records we can pull from this portal. two parameters that can be used for pagination are vidOffset & has-more here's what qliksense script looks like for custom pagination via rest connector. LIB CONNECT TO 'HubSpot '; // Action required: Implement the logic to retrieve the total records from the REST source and assign

Filtering by a calculated measure involving multiple fields in Qlik Sense

こ雲淡風輕ζ 提交于 2019-11-28 08:57:27
问题 I am trying to use a calculated measure as a way to filter my data, but it's looking more difficult than expected. Let me explain through an example. I have data of the following type, with two dimensions - one is a unique ID, the other a category - and four measures. Initial table My first step is to rank each element by its score, where the ranking is evaluated within the same category. I therefore create a new measure: =aggr(rank(sum(Score1)), Category, UniqueID) I do this for all three

Qliksense REST offset pagination using loop

做~自己de王妃 提交于 2019-11-27 08:27:23
问题 I need to paginate through all of the records from Hubspot API and I am getting stuck at offset pagination loop. According to the Hubspot's API documentation, there is no "total records" path available in the response but instead "has-more" filed tells us if there are any more records we can pull from this portal. two parameters that can be used for pagination are vidOffset & has-more here's what qliksense script looks like for custom pagination via rest connector. LIB CONNECT TO 'HubSpot ';