Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SSRS MATRIX InScope formula - get percentage of sales in group against total sales in row - HELP!

Posted on 2010-09-02
2
Medium Priority
?
2,095 Views
Last Modified: 2012-08-14
This is my most puzzling issue ever. I have 1 row with 4 nested groups below it. I inserted a total column to the left of the Column Group. The calculations (Sales and Pct) on the Total are correct. The Group has two body cells. Sales and Pct (percent of sales). Sales is the value in the expression. For each group, I want the percentage of sales against the total sales at each row group.
This is giving me an error.
=IIF(INSCOPE ("Matrix1_DivN")    AND ("Matrix1_Brand"),Fields!Sales.Value/SUM(Fields!Sales.Value),
  IIF (INSCOPE ("Matrix1_RegN")  AND ("Matrix1_Brand"),Fields!Sales.Value/SUM(Fields!Sales.Value),
  IIF (INSCOPE ("Matrix1_AreaN") AND ("Matrix1_Brand"),Fields!Sales.Value/SUM(Fields!Sales.Value),
 IIF (INSCOPE ("Matrix1_Store") AND ("Matrix1_Brand"),Fields!Sales.Value/SUM(Fields!Sales.Value),
  IIF (INSCOPE ("Matrix1_StoreN") AND ("Matrix1_Brand"),Fields!Sales.Value/SUM(Fields!Sales.Value),
  0  ))))  )

Help please! I havce been at this for two days and its due tomorrow!
0
Comment
Question by:Laura2112
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
Emes earned 2000 total points
ID: 33618603
=IIF(INSCOPE ("Matrix1_DivN")    AND INSCOPE ("Matrix1_Brand"),Fields!Sales.Value/SUM(Fields!Sales.Value),
  IIF (INSCOPE ("Matrix1_RegN")  AND INSCOPE ("Matrix1_Brand"),Fields!Sales.Value/SUM(Fields!Sales.Value),
  IIF (INSCOPE ("Matrix1_AreaN") AND INSCOPE ("Matrix1_Brand"),Fields!Sales.Value/SUM(Fields!Sales.Value),
 IIF (INSCOPE ("Matrix1_Store") AND INSCOPE  ("Matrix1_Brand"),Fields!Sales.Value/SUM(Fields!Sales.Value),
  IIF (INSCOPE ("Matrix1_StoreN") AND INSCOPE ("Matrix1_Brand"),Fields!Sales.Value/SUM(Fields!Sales.Value),
  0  ))))  )
0
 

Author Closing Comment

by:Laura2112
ID: 33618901
thanks so much!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, In my previous Article  (http://www.experts-exchange.com/Database/Reporting/A_15199-Introduction-to-Microstrategy.html)I discussed some basic understanding of Microstrategy that how we can get in Intro of Microstrategy (MSTR). Now it's tim…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question