Total Quantity Discount in Paypal Checkout - paypal

In Paypal I want to give a discount for total quantity ordered of multiple items. For example 3 pcs of Item 1 and 2 pieces of Item 2 qualify for a 10% discount because a total of 5 pieces were ordered

Why don't you call their support? They will give you simple, fast and correct solution.

Related

Campaign analysis in Tableau

I am doing campaign analysis and the objective of campaigns is to convert lead into customer. I want to see how many leads are exposed to how many campaigns in terms of percentages before they convert to customer.
Below is the sample data where there are four unique lead.
abc has seen three campaigns, efg has seen two campaigns and so on and so forth
I want to show in pie chart may be something like below in tableau where out of 4 leads 2 leads has seen 1 campaign each so 50%, 1 lead has seen 2 campaigns so 25% and 1 lead has seen 3 campaign so another 25%
First of all you have to find how many campaigns have been exposed for each Lead, Count Campaign:
{ FIXED [Lead id] : COUNT([Campaign])}
Since you want to breakdown your pie with this value, you need to convert this calculated field into a dimension.
In order to calculate the % you're looking for, you need just an additional step; Metric:
COUNTD([Lead id]) / attr({ FIXED : COUNTD([Lead id])})
Doing so you're going to compare each value to the total distinct value of your Lead (4)

Subtotal for ATTR function

I am trying to create a subtotal row after running total calculation. However, subtotal calculation doesn't seem correct.
I have two calculation fields. First one is to calculate running total of count of distinct emails.
Second calculation field is to use running total multiply by another field "charge quarterly".
In my final output, i also segment by cost center ID and licensing role ID. Number looks correct for "calculation 2" calculate field and non-subtotal total charges field. However, subtotal calculation for total charges field doesn't look correct. In some cases, subtotal doesn't even show up.
Can someone help me on how to add correct subtotal here?
Thanks
Use the subtotal provided by tableau
Tab
-> Analysis -> Totals -> Add all subtotals

Looking for a square feet pricing solution for flooring products in Magento 2?

On my Magneto 2 store I am looking to create a square-feet pricing solution for my flooring products. How can I implement a flooring sq-ft calculator that automatically calculates the price of flooring as the customer enters the desired dimension?
Note:I have multiple types of flooring products having different sizes & price.

Calculating min and max timeperiod in Tableau

My data has 7 products, product 1 achieved 100K sales in 2nd week and product 5 in 7 weeks. I need to show min. weeks to achieve 100K as 2 and max. week to achieve 100K as 5 across list of products I have in data. Can anyone help on the code to be used in calculated field?
Here is an example of using table calcs to show when a running total crosses a threshold http://community.tableau.com/docs/DOC-5451

Different Total Types in Tableau

I am trying to use Tableau's row total function but am running into a challenge. In the same widget I have Rows 1 - 4 with Numbers. Row 5 is a percentage.
What I would like to do is have Rows 1 - 4 use a Sum Total and Row 5 use an Average total.
Any suggestions on how I can do this?
Thanks,
I don't believe you can use different total metrics on the same worksheet.
What you can do is to create 2 different worsheets, and bring them side by side on a dashboard. Then use the proper Total metric in each.
But beware on calculation average of percentages, because they might be twisted. Usually weighted average is required to accurately express the "average" of a percentage.
What you can do is to actually calculate the percentage (use a calculated field) via the division of two metrics. That way, when you do Totals you will actually a valid value for the "average" of the percentage.
As an exercise, suppose you have sales (in $) in first row, and # of clients in row 2. Now I create a calculated field called ticket, that is
SUM(sales) / sum([# of clients])
That way I can add that to a third row, and for each column I'll have the right number of ticket, and if I add a Row Grand Total, I'll get the actual average ticket value (that is total sales / total # clients), because Tableau will sum all sales, sum all # clients and them perform the calculation (the division)