473,325 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

SQL Server Analysis Series Cross Tab Crosstab Report

RSM
We are looking to create a cross tab report. Essentially, let's say
that we conducted a survey and tried to collect the brand of beers
that people drink.

So, let's say we have the following data

1. Respondent A drinks Corona and Bud Light
2. Respondent B drinks Corona and Guinness.
3. Respondent C drinks Corona and Bud Light
4. Respondent D drinks Guinness and Heineken.
5. Respondent E drinks Heineken and Bud Light.
6. Respondent F drinks Corona and Guinness.

Now, if I were to create a cross tab to understand the number of users
that drink both Bud Light and Corona, the answer is that 2 people
drink both.

However, can you think of a way we can do this with SQL Server's
analysis series? Please understand that in this example, we are
looking at two specific brands. However, we should be able to perform
the analysis across any two brands (like Corona and Guinness).

Any help is appreciated. I think the problem can be solved with a MDX
query. However, we are wrestling with the syntax.

Thanks.
Jul 20 '05 #1
0 1534

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
4
by: David Peach | last post by:
Hello, hope somebody here can help me... I have a query that lists defects recorded in a user defined date range. That query is then used as the source for a Cross Tab query that cross-tabs count...
2
by: deejayquai | last post by:
Hi I'm trying to produce a report based on a dynamic crosstab. Ultimately i'd like the report to actually become a sub report within a student end of year record of achievement. The dynamic...
3
by: willemp | last post by:
i have the need for a bit of an complex cross-tab report. the following information needs to be shown in 1 report. projectname department hours quarter 1,2,3 and 4 and offcourse all sort of...
1
by: xFiver | last post by:
Hey gang, I'm having a tough time wrapping my head around this problem. More than anything, I'm looking for the "why" of why this isn't working. THE SETUP: I have a Cross-Tab query (we'll...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
4
Fotorat
by: Fotorat | last post by:
Access 97 windows XP Pro I have done a crosstab query for a report with 12 months as the columns and job codes as rows counting people as the value: Link to view report so far Ps the zeros...
6
by: ramab | last post by:
Hi friends, Im getting an error when running my report which is related to a crosstab.my crosstab query will display null but when i run the report some of the fields are blanks. e.g In my cross...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.