Change Table Relationship in PowerBI - postgresql

I am kinda new to Power BI. I have connected PowerBI with my PostgreSQL DB. The problem I am facing is that PowerBI is not fetching the actual relationship which is in my DB. What would be the correct way to resolve this and fetch the correct relationship?

Related

Identified PostgreSQL Database Replication for Consolidated Reporting

Coming from Microsoft SQL Server with Database Services, Integration Services and Analysis Services it was easy to create full or incremental replication beside SSIS Packages to sync child databases to a master reporting database while all have the same schema. Now I am looking how this can be done in real time while using PostgreSQL, close to real time and by knowing the source of the child database.
For example:
The goal is to gather data from selected tables and fields from child databases to a master reporting database. In this case all tables in child databases have the same schema and the master reporting database has one more column in all of the selected tables identifying the source database.
For reference:
First thought was to use Kafka based on a selected list of tables and fields to generate messages which will populate master reporting database in real time as soon as possible a new record is inserted into child databases, is there any other better idea?

Postgresql table not showing up in Power BI

I have an existing connection between Power BI and a Postgresql database. I am able to connect and retrieve data. However, I have manually created a couple of tables in the database. These does not show up when I open up the Navigator in "Recent data sources" in Power BI.
I have tried to connect via the ODBC driver connection method in Power BI and here the tables are showing. The new created tables has primary keys and index.
It is preferred use the 'official' postgresql Power BI connector, so I hope you can help explain why I am not able to see these tables.

Connecting two different database in Tableau

I want to connect two database and establish a relationship between them in tableau. One from sql sever and another from Microsoft excel sheet. How to do that?
I have goggled a lot for that but could not get a suitable answer.
You are speaking about Data Blending -
And for connecting cross database data
Cross Database Querying is a Flagship Upgrade to Tableau 10.0
However, you cannot use cross-database joins with these below connection types:
Tableau Server
Firebird
Google Analytics
Microsoft Analysis Services
Microsoft PowerPivot
Odata
Oracle Essbase
Salesforce
SAP BW
Splunk
Teradata OLAP Connector
You just need to connect to each database separately and make sure they have the same column names. When creating a sheet when you switch between datasources you will see a chain on the linked fields.
Do note that this is not properly joined but is just blended data, it would be best to create another table in your sql database for the excel sheet.

Where are added data in database

I have installed graphite with PostgreSql db (https://www.digitalocean.com/community/tutorials/how-to-install-and-use-graphite-on-an-ubuntu-14-04-server)
Everything is great and I put some data in it. My question is, can I manage data in Postgres db? I have looked for tables with data in db, but I cant find them. Where are they? I just found only these tables.
table account_profile
table account_variable
table account_view
...
table django_content_type
table tagging_tag
table tagging_taggedi
Where are sent data exactly stored? Thanks.
According to the link you posted, Graphite is using the components called 'whisper' and 'Carbon' to store the data. The actual data are stored in this database component.
PostgreSQL is used for metadata by the Django-based web-frontend.

Live sync between SQL Server 2008 R2 and MongoDB with Express

I have created custom script in Express that actually migrates SQL Server database to MongoDB.
But I am facing problems in live syncing between the two databases.
Currently I have added a column updated_by in both the databases.
Then I fetch the latest updated_by row from MongoDb and SQL Server database.
Then I check the date difference and based on it I update my MongoDB database.
There are lots of db tables and I am finding it difficult to identify that, which table is being updated.
Is there any log in SQL Server 2008 R2 that states which table is updated and at what time?
I need a mechanism like, any data update in the db table should immediately sync that rows into my MongoDB.
Any more suggestions on live data syncing is also welcome.
Thanks in advance. :)
When i have such requirement to Sync between Relational DB say (MYSQL) and Non-Relational DB (Mongodb).
I had followed following steps which may help others in future. and the concept is generally called as Change Data Capture
Capture changes (For MYSQL iam using triggers.)
Transform changes to a suitable changes
ie RDBMS to Non RDBMS
Update changes
Remember to sync the structural changes of database and corresponding implementaions.
Following links may help
https://www.flydata.com/blog/what-change-data-capture-cdc-is-and-why-its-important/