Set up Cloud Billing data export to BigQuery
Prerequisites
To enable and configure the export of Google Cloud billing usage cost data to a BigQuery dataset, you need the following permissions:
For Cloud Billing, you need either the Billing Account Costs Manager role or the Billing Account Administrator role on the target Cloud Billing account.
For BigQuery, you need the BigQuery User role for the Google Cloud project that contains the BigQuery dataset to be used to store the Cloud Billing data.
For more information about Google Cloud permissions, see GCP | Set up Cloud Billing data export to BigQuery
Steps To Follow
Open Billing page in GCP Console. Click on the Billing Account which you want to export billing data.
In the Billing navigation menu, click Billing Export. Under Detailed usage cost section, click the EDIT SETTINGS button.

You need to fill the required fields:
Projects
Select the specific project that you want to make it contain your billing data.
Dataset
Select an existing dataset or create a new one to contain your exported Cloud Billing data.

Finally, click the SAVE button to finish the process. After a few hours, you will see a table automatically created under your entered Dataset.

Last updated