Report using Tabular Model and Measures based on Distinct Counts
Hello,
I am creating a report that should present something like this:
YEAR-1 | MONTH-1 | MONTH-2 | MONTH-3... | YEAR | MONTH-1 | MONTH-2 | MONTH-3...
My problem is that when designing the dataset to support this layout I drag the Year, Month and Distinct count Measure, but on the report when I want the value for the YEAR level I don't have it and I cannot sum the months value...
What is the best aproach to solve this? Do I really have to go to advanced mode and customize my MDX or DAX? Can't basic users do something like this that seems so trivial and needed?
Thank you
Luis Simões
Hi Luis,
According to your description, you create a Reporting Services report using Analysis Service Tabular Model as the datasource, now what you want is sum the months value on year level, right?
In your scenario, you can add the Month field to column group, add a parent group using Year Field and then add a Total on Month group. In this case, Reporting Services will sum the months value on Year level. I have tested it on my local environment, the
screenshot below is for you reference.
Reference:Lesson 6: Adding Grouping and Totals (Reporting Services)
If this is not what you want, please describe your dataset structure, so that we can make further analysis.
Regards,
Charlie Liao
TechNet Community Support
Similar Messages
-
Hello everyone,
I created following calculated member in MDX query. I am using it in one of the report parameter in dataset (single select dropdown list as report parameter).
WITH MEMBER [Measures].[ParameterCaption] AS
CoalesceEmpty([Customer].[National Account Code].CURRENTMEMBER.MEMBER_CAPTION,'None')
I would like to display 'None' text at the top of the dropdown list values. So that when user selects 'None' then this parameter will not considered in MDX query else the selected National Account Code will be considered to filter report data. But,
the above return blank/empty value for [Customer].[National Account Code].& member though I specified 'None' as text in CoalesceEmpty function. Any advice would be appreciated.
Thanks, Ankit Shah
Inkey Solutions, India.
Microsoft Certified Business Management Solutions Professionals
http://www.inkeysolutions.com/MicrosoftDynamicsCRM.htmlHi Ankit,
It seems that you issue had been solved in your another thread.
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/5a5becac-226f-428a-95b0-aaaa22733818/ssrs-report-with-tabular-model-create-a-dropdown-report-parameter-with-none-option-as-the-top?forum=sqlanalysisservices#0e51bf8c-a66c-4df5-a244-0147728fdfdb
iif([Customer].[National Account Code].CURRENTMEMBER.MEMBER_CAPTION="","None",[Customer].[National
Account Code].CURRENTMEMBER.MEMBER_CAPTION)
I marked this reply as answer, it will benefit to other members who have the similar issue.
Regards,
Charlie Liao
TechNet Community Support -
SSAS Tabular Model and browse with MS Excel 2013
I have a tabular model, It has an attribute with datatype and data format as "whole number". When I browse the model from excel and add label filter, it
does not work as expected.
When I specify greater than 180 as label filter, It gives following output:
My guess is that it is just filtering on first two digits "18" and not "180". When I copy these values in a excel sheet and create pivot table on top of it, hell it works fine.
Is this a microsoft bug? have you encountered something like this or I am doing some thing wrong?
I am using tabular model 2012 and excel 2013 or 2010.
If this post answers your query, please click "Mark As Answer" or "Vote as Helpful".Hi Itz,
According to your description, the filter not works fine in excel for a SQL Server Analysis Services Tabular models, right?
I have tested it on the local environment, we cannot reproduce this issue. As per my understanding, this issue is related to the settings of your tabular model. Does this issue can be reproduce in multiple servers in your environment? In that is
case, from a support perspective this is really beyond what we can do here in the forums. If you cannot determine your answer here or on your own, consider opening a support case with Microsoft. Visit this link to see the various support options that are available
to better meet your needs:
http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone
Besides, if you consider this issue is a bug, you can submit a feedback at
http://connect.microsoft.com/SQLServer/Feedback Microsoft will confirm if this issue is a bug or not.
Regards,
Charlie Liao
TechNet Community Support -
Use of filters and aggregations based on hierarchy nodes in an update rule
Hello,
I need to calculate some indicators from a ODS (BW 3.5) that contain raw data to another one that will contain indicators. These figures are the results of the use of filters and aggregations based on hierarchy nodes (for example: all sales accounts under a node).
In fact, this is typically a query but I want to store these figures, so I need
I understood I have to use a start routine. I never did that before.
Could you provide me with easy-to-understand-for-newbies examples of:
- filtering data based on the value of an infoobject (value must be empty, for example)
- filtering and aggregation of data based on the appartenance to hierarchy nodes (all sales figures, ....)
- aggregation of the key figures based on different characteristics after filtering of these
Well, I am asking a lot ...
Thank you very much
ThomasPlease go through the following link to learn more on aggregates:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e55aaca6-0301-0010-928e-af44060bda32
Also go through the very detailed documentation:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/67efb9bb-0601-0010-f7a2-b582e94bcf8a
Regards,
Mahesh -
Hello everyone,
I am using the following MDX query on one of my SSRS report.
SELECT NON EMPTY { [Measures].[Days Outstanding], [Measures].[Amt] } ON COLUMNS,
NON EMPTY { ([Customer].[Customer].[Customer Key].ALLMEMBERS) }
HAVING [Measures].[ Days Outstanding] > 60
DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS
FROM ( SELECT ( STRTOSET(@Location, CONSTRAINED)) ON COLUMNS
FROM ( SELECT ( {[Date].[Fiscal Period].&[2014-06]}) ON COLUMNS
FROM [Model]))
Over here, the data is being filtered always for current month and for a location that is being selected by user from a report selection parameter.
I would like to get the count of total no. of customers and sum of the amount measure.
When I am using them in calculated members it gives incorrect values. It considers all records (ignores the sub-select statements) instead of only the records of current month and selected location.
I also tried with EXISTING keyword in calculated members but there is not difference in output. Finally, I manage the same at SSRS level.
Can anybody please advise what are the ways to get the required sum of [Measures].[Amt] and count of [Customer].[Customer].[Customer Key].ALLMEMBERS dimension?
Also, does it make any difference if I manage it as SSRS level and not at MDX query level?
Any help would be much appreciated.
Thanks, Ankit Shah
Inkey Solutions, India.
Microsoft Certified Business Management Solutions Professionals
http://www.inkeysolutions.com/MicrosoftDynamicsCRM.htmlCan anybody please advise what are the ways to get the required sum of [Measures].[Amt] and count of [Customer].[Customer].[Customer Key].ALLMEMBERS dimension?
Also, does it make any difference if I manage it as SSRS level and not at MDX query level?
Hi Ankit,
We can use SUM function and COUNT function to sum of [Measures].[Amt] and count of [Customer].[Customer].[Customer Key].ALLMEMBERS dimension. Here is a sample query for you reference.
WITH MEMBER [measures].[SumValue] AS
SUM([Customer].[Customer].ALLMEMBERS,[Measures].[Internet Sales Amount])
MEMBER [measures].[CountValue] AS
COUNT([Customer].[Customer].ALLMEMBERS)
MEMBER [Measures].[DimensionName] AS [Customer].NAME
SELECT {[Measures].[DimensionName],[measures].[SumValue],[measures].[CountValue]} ON 0
FROM [Adventure Works]
Besides, you ask that does it make any difference if I manage it as SSRS level and not at MDX query level. I don't thinks it will make much difference. The total time to generate a reporting server report (RDL) can be divided into 3 elements:Time to retrieve
the data (TimeDataRetrieval);Time to process the report (TimeProcessing);Time to render the report (TimeRendering). If you manage it on MDX query level, then the TimeDataRetrieval might a little longer. If you manage it on report level, then the TimeProcessing
or TimeRendering time might a little longer. You can test it on you report with following query:
SELECT Itempath, TimeStart,TimeDataRetrieval + TimeProcessing + TimeRendering as [total time],
TimeDataRetrieval, TimeProcessing, TimeRendering, ByteCount, [RowCount],Source
FROM ExecutionLog3
WHERE itempath like '%reportname'
Regards,
Charlie Liao
TechNet Community Support -
SSRS report with tabular model - MDX query to filter parameter data based on Tuple value.
Hello Everyone,
I am working on SSRS report in which a tabular model is being used as a backend.
I want to filter the report parameters which are dependent to other parameters. Like, country, state, and cities drop downs.
All are multi-select parameters. I am using MDX queries to filter the parameters data.
Based on selected one or more countries, the data of states needs to be filtered.
The point is the text which is being displayed in state dropdown for each state name is combination of 3 different members.
So, I created the following Tuple for the same and can see the expected display names in states dropdown.
"("+
[Location].[Code 1].CURRENTMEMBER.UNIQUENAME +","+
[Location].[Code 2].CURRENTMEMBER.UNIQUENAME +","+
[Location].[Descr].CURRENTMEMBER.UNIQUENAME +")"
Now, when I would like filter the cities data based on selected one or more states, I am unable to pass the multiple Tuples (more than one selected Tuples) as parameter for cities dropdown.
The following is my query for City parameter. It is working well when I select only one State from the dropdown.
However, when I select multiple states, it is unable to convert the Tuple into SET in ELSE part of IIF condition specified in following query.
Can anybody help me how to resolve the error that I am getting about STRTOSET function?
Or
Are there any other alternatives to achieve this requirement?
Any help would be much appreciated.
Query:
WITH MEMBER [Measures].[ParameterCaption] AS [City].[City Business].CURRENTMEMBER.MEMBER_CAPTION
MEMBER [Measures].[ParameterValue] AS [City].[City Business].CURRENTMEMBER.UNIQUENAME
MEMBER [Measures].[ParameterLevel] AS [City].[City Business].CURRENTMEMBER.LEVEL.ORDINAL
SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS ,
[City].[City Business].Children ON ROWS
FROM (
SELECT ( STRTOSET(@State, CONSTRAINED) ) ON COLUMNS FROM [Model])
WHERE ( IIF( STRTOSET(@State).Count= 1,
STRTOTUPLE(@State, CONSTRAINED),
STRTOSET("{
("+
[Location].[Code 1].CURRENTMEMBER.UNIQUENAME +","+
[Location].[Code 2].CURRENTMEMBER.UNIQUENAME +","+
[Location].[Descr].CURRENTMEMBER.UNIQUENAME
+ ")
}",CONSTRAINED )) ) CELL PROPERTIES VALUE
Thanks, Ankit Shah
Inkey Solutions, India.
Microsoft Certified Business Management Solutions Professionals
http://www.inkeysolutions.com/MicrosoftDynamicsCRM.htmlHi,
I used following dynamic query in expression of dataset of parameter and it works like a charm.
"WITH MEMBER [Measures].[ParameterCaption] AS [City].[City Business].CURRENTMEMBER.MEMBER_CAPTION "&
"MEMBER [Measures].[ParameterValue] AS [City].[City Business].CURRENTMEMBER.UNIQUENAME "&
"MEMBER [Measures].[ParameterLevel] AS [City].[City Business].CURRENTMEMBER.LEVEL.ORDINAL "&
"SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]} ON COLUMNS , " &
"[City].[City Business].Children ON ROWS " &
" FROM [Model] WHERE ({"& join(Parameters!Location.Value,",") &"}) CELL PROPERTIES VALUE"
Thanks, Ankit Shah
Inkey Solutions, India.
Microsoft Certified Business Management Solutions Professionals
http://www.inkeysolutions.com/MicrosoftDynamicsCRM.html -
Tabular Models and Column Security
We have a tabular model that we need to implement column level security against and we continue to run into brick walls, as anything to do with role based security is centered around row level security (or filtering).
Our need is NOT for row level security, but hiding dimensional attributes based on who is viewing the model. In keeping with the popular sales data scenario's, please consider this:
Fact Sales
Customer Key
Item Key
Sales Amount
DimCustomer
Customer Key
Customer NameCustomerKey
DimItem
Item Key
ItemName
In the aboave example, let's say we would want our Sales Managers to see the VALUE in "Customer Name", but for our Sales Associates, we do not want them to see the value, either have the column hidden all together or at a minimum a value of "HIDDEN"
or "".
We have two roles (AD groups) defined: 1 for users allowed to see, the other for users NOT allowed to see. Our intention was to use role based security, but all it does is filter rows. So if we use that level of security, the user see's
nothing and 0 for sales dollars. If you are allowed to see the value, you see everything and all sales dollars.
What is needed is to have everyone see the sales dollars, but not everyone can see the names of the customers.
Though the above example is related to sales, we are actually in the medical field and dealing with some highly sensitive patient related data that needs to be regulated for obvious reasons.
Are there any idea's out there that could help us with this so we can continue with our tabular build out? Or are we looking at sticking with multi-dimensional cubes.
Thanks for your help!In a SSAS tabular model, we can achieve row level security which you can see on the link below.
Defining Row-Level Security in SSAS Tabular database
Getting Started with Row Level Security
However, currently there is no a functionally to set column level security based on my research. So I am afraid you requirement cannot be done. -
Hi,
Is it possible to extract a report using the SCABB 3.7.0 (or any other version) like the "TOP WEB HOSTS" but instead of HITS as the results for the "TOP WEB HOSTS" I can see the traffic volume toward the top hosts?
other question:
When I extract the "TOP WEB HOSTS" report, I use the field "where the host contains" and type something like "google" to see the top 10 google related hosts.
I would like to extract some report like "TOP WEB IP ADDRESSES", is it possible?
thanks!
_FD.The following works for me when I tested it on SSMS (SQL Server Management Studio)
SELECT distinct
CS.name0 as 'Computer Name',
CS.domain0 as 'Domain',
CS.UserName0 as 'User',
BIOS.SerialNumber0 as 'Bios serial',
SE.SerialNumber0 as 'System Enclosure serial',
CS.Manufacturer0 as 'Manufacturer',
CS.Model0 as 'model',
OS.Caption0 as 'OS',
RAA.SMS_Assigned_Sites0 as 'Site',
RAM.TotalPhysicalMemory0 as 'Total Memory',
sum(isnull(LDisk.Size0,'0')) as 'Hardrive Size',
sum(isnull(LDisk.FreeSpace0,'0')) AS 'Free Space',
CPU.CurrentClockSpeed0 as 'CPU Speed',
IP.IP_Addresses0 as 'IP Address'
from
v_GS_COMPUTER_SYSTEM CS
right join v_GS_PC_BIOS BIOS on BIOS.ResourceID = CS.ResourceID
right join v_GS_SYSTEM SYS on SYS.ResourceID = CS.ResourceID
right join v_GS_OPERATING_SYSTEM OS on OS.ResourceID = CS.ResourceID
right join v_RA_System_SMSAssignedSites RAA on RAA.ResourceID = CS.ResourceID
right join V_GS_X86_PC_MEMORY RAM on RAM.ResourceID = CS.ResourceID
right join v_GS_Logical_Disk LDisk on LDisk.ResourceID = CS.ResourceID
right join v_GS_Processor CPU on CPU.ResourceID = CS.ResourceID
right join v_GS_SYSTEM_ENCLOSURE SE on SE.ResourceID = CS.ResourceID
right join v_RA_System_IPAddresses IP on IP.ResourceID = CS.ResourceID
where
LDisk.DriveType0 =3
group by
CS.Name0,
CS.domain0,
CS.Username0,
BIOS.SerialNumber0,
SE.SerialNumber0,
CS.Manufacturer0,
CS.Model0,
OS.Caption0,
RAA.SMS_Assigned_Sites0,
RAM.TotalPhysicalMemory0,
CPU.CurrentClockSpeed0,
IP.IP_Addresses0
note that what @Vincez did
was to add join to another table 'v_RA_System_IPAddresses'
and select column IP_Addresses0 from the table
please try again.
---Pat -
Dear all,
I have a report were in i need to display two reports for branch wise report and for sales employee wise report.The report is accepted for branchwise were i'm using reuse_alv_hiersal_list_display FM.And as per the business scenario i was forced to use reuse_alv_block_list_display FM for sales employeewise report.Both this report are split for branchwise and sales employeewise reports which exit in the single report itself.
Now as per the requirement i'm displaying the two seperate blocks for sales employeewise report.Which has sales employee internal table in one block and its header and inside sales employee wise internal table in second block with its corresponding header.
There is no problem what so ever in the logic and every thing is fine.But as per the user requirement i've been asked to change the looks and make them into single and display the same in the same list.I'll explain the requirement with example...
I got sales employee number and branch as header for both internal tables ie for sales employees and inside sales employee.The employee numbers are different in our tables which states that they are of sales employees or inside sales employee.My requirement is to club this sales employees and inside sales employee who comes under same branch.I previously use to show it in differrent blocks.The most challeging part to club is i need to have different header titles for both sales and inside sales employees.How is it possible to have them club under same branches.This as u know cannot be done with reuse_alv_hiersql_list FM.So any help or suggestions would really be awarded.......
Thanks in advance...try to put line END-OF-SELECTION.
after START-OF-SELECTION.
format abap code next time before posting, its quite hard to read -
Image not displaying in pdf report using XSL-FO and using Oracle 11g databa
Good Afternoon,
I have created over 15 reports using XSL-fo, with the following syntax to display an image on the pdf:
fo:block margin-left="0.24cm" margin-right="0.27cm" margin-top="0.0cm" ><fo:external-graphic content-width="scale-to-fit" content-height="scale-to-fit" width="1.73cm" height="1.57cm" >
<xsl:attribute name="src">'url("http://readiness:7780/i/marforcom_symbol_rpts.gif")'</xsl:attribute></fo:external-graphic>
</fo:block>
This syntax works fine when using Oracle 10g, now my database has been upgraded to 11g and my image no longer displays in the reports. I have already upload the image into the database as a workspace image.
I have tried to point the image @ the image by using url(#WORKSPACE_IMAGE#marforcom_symbol_rpts.gif)
or <img src ="#IMAGE_PREFIX#marforcom_symbol_rpts.gif")
and it still doesn't work.
I have searched this forum trying to come up with a solution that will fix my problem and am unable to.
Current config: Oracle 11g, using pl/sql gateway.
I need to know how to point the xsl-fo file to the database, where the image now resides.
Thanks,
Mary
Edited by: MaryM on Jul 25, 2012 3:15 PM
Edited by: MaryM on Jul 25, 2012 3:51 PMHi,
I think you need load images to database XDB virtual directory /i/ and then use #IMAGE_PREFIX# substitution.
This might help to access /i/
http://www.apex-blog.com/oracle-apex/accessing-i-using-ftp-170.html
Or use this to load images
http://oracleinsights.blogspot.fi/2012/05/loading-images-into-oracle-xdb.html
Regards,
Jari
My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai -
Use business indicator and measurements
I'm working with 11g
I have try to use business indicator (BI) and measurements. I found the istruction on " Getting started" ( and in Oracle documentation too)
I have created :
- BI dimension string --> that is associated at string variable typeDocument of the iniziator human task
- BI mesurament int --> single
- BI (numberTypeDocument) counter associated at the human task
I set new dashboard in workspace. In "Data sources" I define :
- Dimension
Series --> Revision ( default)
Group --> with BI dimension
- Measure
Variable -->with BI mesurament
Operation type --> sum
Value type --> variable
- Filter --> Revision(default)
BUt I don't see nothing
Can you help me?I have find .....
http://download.oracle.com/docs/cd/E17904_01/doc.1111/e15731/bam.htm
Go to Tools > Internet Options > Security > Trusted sites and click Sites.
Uncheck Require server verification (https:) for all sites in this zone if necessary (it is necessary unless you have Oracle BAM set up for SSL).
Add the Oracle BAM URL to the list: http://<bam_servername>
I try at create BAM data object ....
thanks
Elena -
Use navigation model and runtime created pages
Hi,
I have my Portal Application created in JDeveloper, with set of base pages. Pages are stored in default-navigation-model, so I could use i18n in navigation rendering. I'd also like to use runtime pages management. When I enter admin panel, I can add new pages, change order of pages created in jdeveloper, or show/hide them. However those changes are not reflected in the portal, navigation always looks the same, still displays pages I've marked as hidden - is navigation cached somewhere?
If I create new page in admin panel, it isn't displayed in navigation too. However I could click on this page title in admin panel, go to this page and edit its content - of course even then page is not displayed in the meny, none of menu items is marked a highlited.
What am I doing wrong? I followed Yannick's tutorial http://www.yonaweb.be/webcenter_tutorial/closer_look_at_navigation_model and switched from page hierarchy to navigation model. Maybe this is the reason?I got back to your tutorial and haven't found a place where it'd be explained directly. Maybe "between the lines", but as for Webcenter newbie I haven't notice it.
I switched back to pages hierarchy. I was using navigation model to achieve i18n in navigation, however I also had problems about that, and as you suggested me once in another thread I changed page titles to PortalBundle keys and rendered values from bundles manually.
Therefore now comes the second question in this area - is it possible to use page hierarchy, runtime crated pages and still localize page titles?
P.S. As an experienced Liferay Portal developer, I really try to see any benefits of Webcenter in building custom portals area and still I can hardly find any... ;) -
Cubes - COPA Based Model and Account Based Model.
please search the forums before posting - the COPA models is well documented in help.sap.com and also in the forums
Hi All,
Can some one tell me the difference in Cubes based on COPA Based Model and Cubes on Account Based Model?
thanks
Edited by: Arun Varadarajan on Jan 28, 2009 8:11 PMplease search the forums before posting - the COPA models is well documented in help.sap.com and also in the forums
Hi All,
Can some one tell me the difference in Cubes based on COPA Based Model and Cubes on Account Based Model?
thanks
Edited by: Arun Varadarajan on Jan 28, 2009 8:11 PM -
How to measure current and resistance if i only have DAQ using VB 6 and Measurement Studio
I want to do a remote lab for basic electronic lab. One of the task is to measure current and resistance. How to do it if I only have DAQ card and using Visual Basic 6 and Measurement Studio. Can anyone give me a clue.
If your DAQ device is supported by DAQmx, you can use it with VB6. Here's how: NI-DAQmx Support in Visual Basic 6.0.
Michael P
National Instruments -
Possible to use both PowerPC and Intel-based systems together with Qmaster?
Hello,
New to the Qmaster setup, I was wondering if it was possible to set up a Qmaster cluster mixing PowerPC and Intel-based systems. If it is possible, what version of Qmaster would support this type of cluster?While it can work, note that if there is huge difference is processing speed, the PPC machine can actually slow down the process as everything waits for it to finish it's instance and copy it back.
It's worth a try but keep an eye on how the various computers perform.
Have fun.
x
Maybe you are looking for
-
How to sync changes in user-created distributions lists when used by multiple Outlook users
Hi all, Thanks for looking at my post. We are using Outlook exchange and Outlook 2010. I have created a distribution list that is comprised of 20 members (students) with email addresses outside our organisation. I have sent this list to others in my
-
Hello All, Has anybody here used Paying Company codes? I have two company codes 3000 and 9123. The Paying company code for 9123 is 3000 (this can be setup in transaction FBZP->All company codes). I created two Non-PO invoices (FB60) for each compa
-
How do I change the colors to whatever I want within a chart?
I see that i can change the colors to a few predetermined color combinations, however I need them to be a specific color in a specific order. Is that possible?
-
Picasa web album uploader plug in
Iphoto version 8.0 = when I try to open the export option the program start looking for Picasa web albums and is stuck in a loop that it cannot be stopped even with force quit. Tried to trash all the Picasa plug ins and preferences I could find but i
-
I cropped a picture and saved it to my album. When I put the picture into iMovie it doesn't show what I cropped. It goes back to how it was before the crop.