SELECT * FROM customers;
SELECT count(*) FROM customers;
SELECT * FROM transactions where market_code='Mark006';
SELECT distinct product_code FROM transactions where market_code='Mark006';
SELECT * from transactions where currency="USD"
SELECT transactions.*, date.* FROM transactions INNER JOIN date ON transactions.order_date=date.date where date.year=2018;
SELECT SUM(transactions.sales_amount) FROM transactions INNER JOIN date ON transactions.order_date=date.date where date.year=2018 and transactions.currency="INR\r" or transactions.currency="USD\r";
SELECT SUM(transactions.sales_amount) FROM transactions INNER JOIN date ON transactions.order_date=date.date where date.year=2018 and and date.month_name="February" and (transactions.currency="INR\r" or transactions.currency="USD\r");
SELECT SUM(transactions.sales_amount) FROM transactions INNER JOIN date ON transactions.order_date=date.date where date.year=2018 and transactions.market_code="Mark006";
= Table.AddColumn(#"Filtered Rows", "norm_amount", each if [currency] = "USD" or [currency] ="USD#(cr)" then [sales_amount]*82.40 else [sales_amount], type any)