Link to home
Start Free TrialLog in
Avatar of Becky Edwards
Becky EdwardsFlag for United States of America

asked on

Setting up the report based on crosstab

Is it possible to filter the data shown in the detail section based on what is in a crosstab?  I have the crosstab showing perfectly what I want, the top 25 based on a formula.  How could I do this in the group and detail sections of a report?  See attached picture of the crosstab.  When I choose yes, to show patient detail, all departments show on the report, not just the top 25, because the formulas are not being used in the report.  How would I need to use the formulas in the report, so that whatever choices are made in running the crosstab, the same is reflected in the report?

I probably made the first mistake by taking a report that was very complicated and has stuff I don't need, and used it to place my crosstab in.  It had all the tables I needed and the relationships already established that pulls the data.  All I had to do was add one more table, create formulas based on that table and build the crosstab.  Now, however, the detailed data is not based on what I need to show in the detail section.  The customer says, "So can we click on the department (in the crosstab) and get the patients that make up that number?"  Of course they cannot, because crosstab's are static.

The next best thing I could give them is the ability to see the detail if they say "yes", but then have only the detail involved in the crosstab to show.
Regis-missing-Phys.gif
Regis-missing-Phys-design-view.gif
Avatar of Mike McCracken
Mike McCracken

You could group on the deprtment then put the cross tab in the group header.
The group header would show only the row for the department but if the details were hidden (drill down allowed) it could look like a cross tab.

They could the ndrill into the group to see the details.

mlmcc
Avatar of Becky Edwards

ASKER

What does putting the crosstab in the group header do?
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
OK - I tried that and yes it will give me just the details per group.  However, I had the crosstab just showing me the top 25 departments based on the formula "no pcp" and now I am seeing all the departments.

If I try to limit it at the Department level based on the top 25, I don't get the choice of limiting the grouping on the top 25 departments based on the formula "no pcp".  What do I need to do to make that choice available?
I figured it out and your solutions were perfect.  Thank you again for all your assistance. Greatly appreciated!!!!!