We help IT Professionals succeed at work.

Setting up the report based on crosstab

Becky Edwards
on
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
Comment
Watch Question

Mike McCrackenSenior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013

Commented:
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
Becky EdwardsEpic Clarity Developer

Author

Commented:
What does putting the crosstab in the group header do?
Senior Consultant
CERTIFIED EXPERT
Most Valuable Expert 2011
Top Expert 2013
Commented:
It limits the cross tab to the records for that group

mlmcc
Becky EdwardsEpic Clarity Developer

Author

Commented:
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?
Becky EdwardsEpic Clarity Developer

Author

Commented:
I figured it out and your solutions were perfect.  Thank you again for all your assistance. Greatly appreciated!!!!!

Explore More ContentExplore courses, solutions, and other research materials related to this topic.