sort of lookup/measure question!!!

masplin

Active Member
Joined
May 10, 2010
Messages
413
I have a table "transactions" which includes a field "transaction month" formatted so its 1st of each month. I have another table "Webstats" with website vistor numbers in a column "web visitors" organised by "Visitor month", also formatted 1st of each month. I have created a realtionship between "transaction month" and "visitor month". I can ceate a column in transactions using retalte that gett he right web vistors for the mnoth of each transaction so I know the RELATE is working.

I have a pivot table with "transaction month" as the row label and assorted columns. I want one of the columns to be the vistors in that month taken from the web stats table. I have tried everything I can think of with no success.

If I use a measure RELATED(web Stats[web vistors]) I get the total visitors for all months repeated in each line not just the vistors for that transaction month. I was expecting the transaction month filter to just pick the relevant month. I have tried using various filters to make transaction month=vistor month, but I just get errors.

I'm sure this is trivial for you smarter folk out there so any hep appreciated.

Mike
 
Is this because I have created an indirect multiple relationship between tables? I found this on microsoft Technet

"Multiple relationships could result in ambiguous dependencies between tables. To create accurate calculations, you need a single path from one table to the next. Therefore, there can be only one relationship between each pair of tables."

Transcation is related to user both directly through User ID and indirectly through both relating to Webstats. Is there any work around?
 
Upvote 0

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
If anyone wonders I solved this by calculating the registration in extra an column in the webstats page using the obvious formula that wouldn't calc as a measure due to the context.

Code:
=CALCULATE(counta(users[User ID]),filter(users,users[Reg Month]=WebStats[Visit Month]))
 
Upvote 0
Hi Mike,

This looks like an older thread, but I thought you might like an alternative:

Have you tried to create a separate date table with a column named Activity Month? You should then be able to link all others to this new table, and use it as your row/column/slicer data. Plus you can add other columns for quarter, year, Moon phase, year of the rat, etc.

Whenever I create a PowerPivot book, the second thing I do is create a date table. The third thing is to marvel at the flexibility I have to do time based analysis.

Let me know if I am missing the point of your issue,

Ben Niebuhr
 
Upvote 0

Forum statistics

Threads
1,223,929
Messages
6,175,447
Members
452,642
Latest member
acarrigan

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