crosstab query calculation YTD problem

Lo031514

New Member
Joined
Aug 26, 2017
Messages
13
Hi all,

I got below problem.. After I created a crosstab query pp, I could not create another query to calculate the YTD amount of ARPU. Does someone know what can I do? I confirm that my access has the right field for [pp].[Period]...

y4mLKje0VuRXIGHxfLWAlBvLTWWKJeDCRUIjhqUUFBNkrUfcjNvYd1vDqG8Dw4slOyQ173mW0jHV2T-puQe5FLBaVYhhntXCMpEEA4P9bbkNNBpQ0pcHIWf_BANk80YhkYX-9uVewd7xUAZtlDm-hW0Iu1lxmRg3KyYCCmOuxshtpx06fIx76FX-Dsgx0Qt8Vqj6z-uaO2pfbohnlT8zpUPQA
 
Last edited:

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
the last bit of the WHERE clause isn't good. The bit that has ", Month(..) AS YTDAmount"
 
Upvote 0
Delete it. The WHERE clause should only contain the criteria. Such as "WHERE onething > another AND this <> that"

The WHERE clause shown additionally wrongly has ", Month (...) AS Soemthing"
It has no place in the WHERE clause.

It may not be the only problem, btw. I think best to start a new thread giving sample of the source tables and a clear explanation of the relationship between the tables, and also show results wanted. regards
 
Upvote 0
If you're going to alias a table, you must refer to the alias name afterwards, otherwise the original name can't be resolved. You give a table/domain an alias, then right away, re-alias it. I'd say that downstream, it makes no sense to Access.
e.g.
FROM pp As A INNER JOIN pp As OD ON A.Period = OD.Period

maybe
FROM pp As A INNER JOIN A ON OD.Period = A.Period

as long as OD is either the proper domain name, or if it is an alias, it must be aliased first, otherwise it will fail. Maybe that's not the real problem, or maybe it's one of several but I can't test it.
 
Last edited:
Upvote 0
I got below problem.. After I created a crosstab query pp, I could not create another query to calculate the YTD amount of ARPU. Does someone know what can I do? I confirm that my access has the right field for [pp].[Period]...

I don't know why but I don't see your query. If you are still confused post the query text.
 
Upvote 0

Forum statistics

Threads
1,221,618
Messages
6,160,872
Members
451,674
Latest member
TJPsmt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top