How discount values are calculated and fetched in saved searches and reports

If the discount amount is in Currency format: To calculate the amount of discount that each item receives, we can follow these steps: Calculate the total value of the order before any discounts are applied. For each item on the order, calculate the weight of the item as a proportion of the total value of… Continue reading How discount values are calculated and fetched in saved searches and reports

SuiteQL to generate a Customer saved search in Power BI via ODBC connector

The requirement was to connect NetSuite searches with Power BI in order to create the reports. We can load tables from NetSuite to Power BI based on the permissions given in the custom role. The searches cannot be load this way. As solution to this we can use SQL queries to recreate the same search… Continue reading SuiteQL to generate a Customer saved search in Power BI via ODBC connector

Total Tax rates from invoices using saved search (Line total)

The Total tax rates from invoices or sales orders can be calculated using the formula: Total tax rate: ROUND(MAX(CASE WHEN {taxitem.taxtype} = ‘State’ THEN {taxitem.rate} ELSE NULL END),4) + ROUND(MAX(CASE WHEN {taxitem.taxtype} = ‘County’ THEN {taxitem.rate} ELSE NULL END),4) + ROUND(MAX(CASE WHEN {taxitem.taxtype} = ‘District 1’ THEN {taxitem.rate} ELSE NULL END),4) + ROUND(MAX(CASE WHEN {taxitem.taxtype}… Continue reading Total Tax rates from invoices using saved search (Line total)

SuiteQL to generate a saved search in Power BI via ODBC connector

The requirement was to connect NetSuite searches with Power BI in order to create the reports. We can load tables from NetSuite to Power BI based on the permissions given in the custom role. The searches cannot be load this way. As solution to this we can use SQL queries to recreate the same search… Continue reading SuiteQL to generate a saved search in Power BI via ODBC connector