The usual payapal invoice has some columns such as Description, Quantity, Unit price, Amount
How Can I add a new column like period or months and then the amount must be calculated by multiplying those columns like Quantity * Unit price * period
Thanks in advance
Unfortunately the customization options for the PayPal invoice does not include adding a column. However, you could treat each month as an item and use the existing logic to calculate your total.
Related
I'm creating a dashboard in tableau.
I have a table with a total payment.
And I'd like to know if it's possible to create a imput field to reduce that payment, like a hand imput discount.
i.e. if the total payment is 2000 USD and we want to give a 500 USD disct, create a imput field that recieve the value and discount it.
Also this discount value is somehow discused and not indexed in any database so I cant connect to tableau.
you can try doing a calculated column
Discounted amount = [original_price_col_name] - 500
or Discounted amount = [original_price_col_name] * .20
so the new discounted price will appear in a new column called Discount amount
It would help if you used a Parameter to perform this in a more dynamic and user-friendly way. I have also added a calculation to show how to utilize the parameter.
Create an Integer or Float Parameter
Create a Calculated field to use the parameter in Tableau viz
I use Google sheet to record my revenue for months, but recently I have some trouble.
I offer both post-paid and prepaid service, so I have some customers prepaid for more than one month, while post-paid service would be charged each month because it's usage-based. In short, I have to distinguish prepaid and postpaid service, and the billing date, then sum the total amount I need to bill my customers.
I used to use the formula that simply multiply the prepaid service amount of the first month by payment cycle (how many months he prepaid), but recently it starts to go wrong because the amount would be different in each month.
I do search for some articles about sum the dynamic range, but soonly find it hard to use because I have to select my column conditionally, and even with mutiple columns to sum.
The sample of my sheet:
https://docs.google.com/spreadsheets/d/1x0-1ckpoCB6XZJOqkEYZzoqUP49F-tdisrMXKbxZ4kk/edit?usp=sharing
So the problem is: How to sum with the conditional dynamic range for my prepaid services? Please do not hesitate to give me some suggetion on my sheet. Thank you!
try:
=INDEX(LAMBDA(d, h, aa, bi, cr, e, MAP(A2:A7, B2:B7, C2:C7,
LAMBDA(a, b, c, IFERROR(IF((b="1st")+(NOT(ISERROR(SEARCH(TEXT(e, "M/D"), b)))), SUM(
IFERROR(FILTER(FILTER(d, h>=EOMONTH(e, 0)+1, h<(EOMONTH(e, c)+1)), aa=a, OFFSET(aa,,1)=bi, FILTER(d, h=cr)=0)),
IFERROR(FILTER(FILTER(d, h<e, h>=(EOMONTH(e, -c-1)+1)), aa=a, OFFSET(aa,,1)=bi, FILTER(d, h=cr)=1))),
SUM(FILTER(FILTER(d, h<e, h>(EOMONTH(e, -c+1)+1)), aa=a, OFFSET(aa,,1)=bi, FILTER(d, h=cr)=1))), "no match"))))
('My raw data'!C$2:$15, 'My raw data'!C$1:$1, 'My raw data'!A$2:A$15, "Billing", "Criterian", B8))
I'm creating a data entry form in Access where sales people can select a product, then enter a quantity for that product in each of 12 columns representing the next twelve months. For a given project, there may be up to ten products, so each product will be on a separate row.
Tables:
Project - fields ProjectID, ProjectName, City, SalespersonID, StartDate
ProjectDetail - fields ProjectDetailID, ProjectID, ProductID, Date, Quantity
Product - fields ProductID, ProductName
Salesman - fields SalespersonID, SalespersonName
Currently I have the Project form with the simple project header information, and I want the ProjectDetail information to be a subform, of course. But - when I used a query to give me "buckets" of Quantity for Month0 (the current month), Month1, Month2, etc., I found that I can't enter data into the form because the fields are based on an expression.
What's the best way to handle this? Thanks in advance!
If each ProjectDetail entry will have multiple sets of Date and Quantity, it might be wise to pull those out into a separate table with a one-to-many relationship to ProjectDetailID, especially if you anticipate the number of date/quantity pairs could change from twelve. So, a ProjectDetailQuantity table would have fields ProjectDetailQuantityID, ProjectDetailID, Date, Quantity. On your form, you would have the Project main form, with a sub form to ProjectDetail and another subform to ProjectDetailQuantity.
I am a beginner in iReport and I cant program Java so I hope you can give me an idea.
I've already managed to make a chart that displays how often all customers have ordered in february, march,... etc.
Thats how I did it:
In category expression I have: $F{Month}
In value expression I have : $F{count(Orders)}
But I want to display how often only one customer (for example customer a) has ordered in february, march,... etc.
I have the following values which i can use:
Month, Orders and Customers(here are all customer names saved)
-------//-----------UPDATE--------------//-----------------------------------
I want to display a chart which represents the total orders per month of a customer. But iam trying to display my 3 customers (my database has only 3) in only one chart (stacked).
For example(see picture above): I want to display the total orders from Customer A (yellow) in february. And I want to display the total orders from Customer B (blue) in february and the same for customer C.
The customers should be displayed stacked (3 in every month) and every customer should have a different color plus the total orders from every customer should be displayed ...like in picture above for example:
customer A(yellow) made 3 total orders in february, Customer B(blue) made 2 total orders in february, customer C..etc.
it is very important that every month displays 3 customers...stacked.
How do I do this?
I appreciate every idea.
From what I have understood from your question, you want to show a chart which represents the total orders per month of a customer.
You need not use stacked bar graph for this purpose.
You may want to use bar graph which would serve your purpose.
If you want to see the chart per customer, create one parameter $P{customer} and pass it into your query.
Refer document iReport-Ultimate-Guide-3 on how to create parameters and to use it in queries.
e.g:
select customer,month,count(orders)
from <your table>
where customer=$P{customer}
group by month
The above approach would work if you want to see the details for only one customer.
**Here is my solution after your update.**
From your update, it seems like you want to represent the total orders per month for all the customers.And you want to use stacked chart for the same.
Then what you have done is correct but have missed to add a field to your 'Series Expression'
Add your field customer to your series expression and this will resolve your problem i.e,
Series Expression : $F{customer}
Category expression : $F{Month}
Value expression : $F{count(Orders)}
This will display the chart in the format you have specified.
Create a paramter that takes your customer name $P{customerName}
and another takes month $P{month}
pass these two paramters to your sql like that
SELECT customer_name, order_count FROM customers
bla.. bla..
WHERE customer_name=$P{customerName} and month=$P{month}
then create a chart with only one serie to show one customer as one color. Not like yours with 3 colors.
Fell free to ask for more specific detail.
I have downloaded the sample paypal IPN script using php and customised with the email for the buyout option and it has also some hidden paramaters such as amount, quantity,return_url, notify_url like this. My main idea is to do the buyout option for the product purchase in my website.The current calculation for the product purchase is as follows:
Item Price:$20
Quantity :10
Total amount $200
I need the calculation to some different way as our site have some static set of quantities and prices, so our point of calculation is as follows:
Item Price:$20
Quantity :10
Total amount:$20
So, the total amount needs to be the same for the given number of quantities.The IPN configuration doesn't allow me to change the quantity field by this way, please suggest some ideas to overcome this issue.
The item price is price per item, the quantity is of course multiplied by the item price. Your second example should have $2 as the --Item-- price. If you want to sell "10 items for $20", I think you will need to make a new item for that combo and just but the actual quantity in a custom field.
If you want to use the same item and paypal's quantity field, I think you need to look into calculating a discount and making that part of the parameters (discount_amount_cart or discount_amount_X for item X I think).