iTunesConnect, Sales and Trends, Units - app-store-connect

Are units in iTunesConnect Sales and Trends report aggregated over all time? For example, if I show 100 units one week and 150 units the next week, do I have 250 downloads for all time or just 150 for all time? If it's the latter, what explains a decrease in units? Uninstalls?
Thanks!

Related

SQL, how to count days for how long a variable has been unchanged (time series)

As an example I have 5 different stocks, where I only use end of day prices. The stocks do not change price often, maybe a couple of times per month.
I want a easy way to count the number of days the stocks have been unchanged, using the last available price.
One of the stocks may be "XYZ", the latest price is 103. Last time the price was changed was 23.10.2021, and the price went down from 104 to 103. How to automatically count the number of days the price has been at 103 in SQL?

How is the 24 hour percent change on Binance calculated

When it comes to 24h Change on a specific Pair,
How is this calculated?
If it's price at current time compared to price 24 hours ago, then for example:
the current price of BTC 9431 now (6/16/2020 5pm) is compared to the price of 9357 on 6/15/2020 at 5pm?
and an hour later (6pm) if I see it again will be compared to the price on 6/15/2020/6pm?
let say
t_0 (price now ), t_24(price 24hours ago)
so pirce_change(%)= ((price(t_0)-price(t_24))/price(t_0))*100
I refer you to this link: https://bitcoin.stackexchange.com/questions/67438/24-hour-price-change-mean
The 24h % change is the difference between the current price and the
price 24 hours ago.
The current price of bitcoin is $14988 and was $14937 24h ago. So the
24h change is +0.3%, even if there was a huge spike between this
period of time.

MDX , Calculate Number of days when the cummulative sum of Revenues from end of a month date match with the given debt amount

I have a financial cube and i have to calculate Daily Sales Outstanding as :
Number of Days between the selected month last date and the earliest transaction date when cummulative sum of Revenue from last date of the month till the date where sum revenue <= the debt amount for the date .
e.g
On 31/12/2009 my debt amount = 2,500,000
31-Dec-09 30-Nov-09 15-Oct-09 31-Oct-09
Revenue 1,000,000 1,000,000 500,000 1,0000
Cummulative sum of revenue 1,000,000 2,00,000 2,500,000 4,000,000
No of Days 31 30 16
On 15/Oct/09 cummulative revenue is 2,500,000 which equals my debt amount on that day
Count of Days = 31 + 31 + 16 = 76 Days.
In other words Sum Revenue from the selected date backwards until sum total equals or exeeds the total to date balance of the debtors.
Any help will be highly appreciated .
If i haven't explained clearly enough or if you need more information then please let me know.
Thanks in advance .
Shuchi.
Have you examined this blog: http://consultingblogs.emc.com/christianwade/archive/2006/04/30/MDX-Sprocs-and-Scripting_3A00_-An-Interesting-Example.aspx
He covers a few ways of approaching this, it sounds to me like a recursive problem, in that you need to 'walk backwards up along the calendar' adding up revenue, until you find the day where the added up revenue meets/exceeds the initial debt?
The above link should give you a few different approaches to tackle this, shout if you get stuck.

Calculate Age of Debt in SQL Server

I have three tables:
Charges
Payments
Adjustments
Each has a value, called Amount. There are no allocations done on this data, we are assuming the oldest Payments are paying the oldest Charges or Adjustments. Each Amount could be +ve or -ve.
I need to produce a report which shows the age of the debt, based on the current balance being in debt, where the balance is the sum of each Amount in all tables. However, the age of the debt must be the Age of the current debt. If an account was in debit in October, but was zeroed in November and then in Debit in February, the Age of the Debt would be February. In need to provide a 30, 60, 90 day breakdown of each account whose balance is outstanding.
Sorry if this isn't clear, but if you've done it before you'll know what I mean. Any pointers?
Just been playing with a pen and paper. Is this as simple as:
Amnt Current Debt at Time = Sum(Debits to Time) - Sum (All Credits)
So in SQL:
Convert All +ve Charges, -ve Adjustments or -ve Payments to Debits (UNION)
Convert all -ve Charges, +ve Adjustments or +ve Payments to Credits (UNION)
For each of your age points, get the Sum of Debits to that point and subtract all of the credits for all time. (SUM and GROUP BY)
Any problems with this?

billing module

I'm launching a small service and plan to charge monthly (eg- will be advertised as $10 monthly). I'm working on the billing module right now but was wondering about a small bit:
I plan to bill customers when they first register and then at regular intervals thereafter. Getting to my question- Some months have less than 30 days. Does monthly billing imply exactly a 30 day interval or would anything between 28-30 days be considered a monthly interval?
I was planning on doing 30 because it seems that's what customers would expect, but I'm also curious if some companies charge at a fixed interval other than 30 days.
Billing monthly is assumed to be 12 times per year, not once every thirty days.
Preferably, billing should be on the anniversary of the original billing date of the month. If the current month has fewer days than the original billing DOM, bill on the last day of the current month, but on the next month, bill again on the anniversary day.