Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 28687

Using two dataset totals for one calculation

$
0
0

Hey everyone,

      I have two datasets that retrieve my information that are independent from one another since I am unsure how to combine them together.  The first dataset gives me totals for information broken up by program.  The second dataset gives me other totals that are more specific depending on user input but are also done and grouped by the same programs.   The calculation I want to do is to find the percentage between the two.  Basically here is the table and calculations im creating/trying to create

Dataset1:     Retrieves total # of inquiries per program;

Dataset2:  Retrieves total # of inquiries per program that ended up becoming admitted to that program, not just calling up about it.

I've attached a screenshot of how things are currently rendered.

The Program and #of initial inquiries and transfers are rendered from Dataset1, and the #Admissions and conversion % are currently coming from Dataset2.  I want to make the conversion %: column be the #admissions(Dataset2)/#of initial inquiries(Dataset1), but don't know how to link them together by program.  The only context I could think of would be using and IIF() statement, but if i'm correct you can't use multiple datasets in an IIF()?

Currently both are grouped by "Program" but i removed the display for Dataset2 to make it look more uniform.  Any help on this would be greatly appreciated as i've just about exhausted my knowledge of Report Builder.

Thank you very much,

NickG


Viewing all articles
Browse latest Browse all 28687


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>