I'm trying to create a MicroStrategy document that has data from four freeform SQL reports. All of the freeform SQL reports would have the following format.
Status
count(case)
Pass
40
Fail1
50
Fail2
60
Now, I'm trying to create a document with the these four reports and trying to have a table of all the four reports combined. Something like this..
Dataset
Status
count(case)
One
Pass
40
Two
Fail1
50
Three
Fail3
70
Any idea how to achieve this only with the reports and the attribute (Status), metric from each report - count(case)
Related
My Excel applications exports data (6 columns by 300+ rows) to Access DB once a minute.
After exporting, I try to import two sets of older values from Access to Excel.
The primary query is:
SELECT qryStDevPct.StDevPct, atblExcelIntraday.ValueClose
FROM atblExcelIntraday
LEFT JOIN qryStDevPct
ON atblExcelIntraday.SecurityID = qryStDevPct.SecurityID
WHERE atblExcelIntraday.RecordDate Between #2022-05-04 13:55:59# And #2022-05-04 13:54:59#
ORDER BY atblExcelIntraday.Ticker;
The internal Access qryStDevPct is:
SELECT atblExcelIntraday.SecurityID,
Avg(atblExcelIntraday.ValueClose) AS AvgP,
StDev(atblExcelIntraday.ValueClose) AS STD,
[STD]/[AvgP] AS StDevPct
FROM atblExcelIntraday
INNER JOIN atblSecuritiesOpenPriceDaily
ON atblExcelIntraday.SecurityID = atblSecuritiesOpenPriceDaily.SecurityID
GROUP BY atblExcelIntraday.SecurityID;
The Price data from table always imports correctly, but StDevPct is either 0 or 1 30% of the time.
I can easily refresh it by doing manual "Data Refresh", but neither .Calculate, nor .QueryTables("qryPriceDB_1").Refresh work.
I could split it it two separate queries, but aside from programming it will take more time on the Excel end, and I'm trying to keep my main procedure to under 1,500 msec.
Please advise.
I am very new to microsoft access. I work in an Immunization program where I routinely collect data about vaccinated children. I used to have excel spreadsheets (different spreadsheet for every campaign) but as the number of spreadsheets grew, comparison between data of different campaigns became difficult.
Now I am trying to get all the data into a database program in which I can bring data from multiple campaigns into a single report easily.
After jumping into access, first I need to get the basic things done that excel could do very easily. e.g.
This is sample data from day 1 and day 2 of the campaign. In access I can create a query which shows data from day 1 only and a totals row at the end. But how do I create a single query/report which shows separate totals row for each day. In other words, how do I reproduce the data in pictures above in a single access report.
Edit:
I am planning a single table that contains data from all the campaigns in various columns.
The table in microsoft access looks like this:
Link to the access database file:
link to access database file
June7 has provided the correct advice - though it is cryptic.
Your table structure appears correct - you want a single table with the identity of the campaign and date (or whatever parameters you seek to differentiate them).
Your query is to collect those records into a record set. (Although there is an aggregate query type - it is not meant for what you seek to do.) You don't want to report on the entire database each time probably so one uses a query rather than the table itself to be the record set of the report. How that query is delimited is up to you.
The report object is where one then groups - and a group can have a total. You will want to look into online/text instructions on this for actual implementation.
In Microsoft Dynamics 2011:
I did a very basic advanced find and the number of records returned was 13,449. I exported this to excel and the number of rows in the spreadsheet was 13,486. For the life of me I can't see any reason why it should be exporting 37 more records than were in the advanced find results.
I tried exporting the raw fetch to try running it in isolation, but there is a 5000 row limit so I couldn't. Dynamics seems to page through the records once it hits 5000.
Has anyone else had this issue or be able to help please?
Most likely the data changes during the time you are exporting and 37 more records match the query criteria. Refresh the result in Advanced Find and check the number.
If possible, run the query in SQL and check the result.
If the view contains any multiple line text field, I suggest you check if any of these values take more than one rows in Excel. Normally CRM export feature puts all the text in one line, but you may check that just in case.
If Advanced Find is your only tool and you really need to find the issue, do a research on the exported data, find the column that has the most distributed values. E.g. a currency field "CurrentValue" that contains 1000 distinct values out of your 13000+ records. Use the distinct values to retrieve sub data set so you can easily compare the result from Advanced Find and the Excel sheet, e.g. add a condition that "CurrentValue" is between 0 and 100. Once you find the 37 records that not shown in your Advanced Find, you can then look into the record data and find out the cause.
I need to create a dimension using another dimension to create some calculated attributes in SSAS to show in excel slicer. But I Don't want to process cube. Only use MDX code to use another dimension and create new dimension to use in slicer.
For example we have a dimension named DimAgeGroup. it has 7 group.
0-10 , 10-20 , ... , 60-70
then i need to create a dimension using mdx to show before 30 and after 30 to show in excel slicer without any cube processing.
any idea?
I think all you want is 2 new calculated members.And calculated members you can deploy without making the cube unprocessed.
CREATE MEMBER [DimAgeGroup].[AgeGroup].[All].[Before 30]
AS
([DimAgeGroup].[AgeGroup].[0-10],[Measures].CURRENTMEMBER]) +
([DimAgeGroup].[AgeGroup].[0-20],[Measures].CURRENTMEMBER])
,VISIBLE =1;
CREATE MEMBER [DimAgeGroup].[AgeGroup].[All].[After 30]
AS
([DimAgeGroup].[AgeGroup].[30-40],[Measures].CURRENTMEMBER])+
([DimAgeGroup].[AgeGroup].[40-50],[Measures].CURRENTMEMBER])+
([DimAgeGroup].[AgeGroup].[50-60],[Measures].CURRENTMEMBER])+
([DimAgeGroup].[AgeGroup].[60-70],[Measures].CURRENTMEMBER])
,VISIBLE =1;
You can deploy either with XMLA or within Visual studio with BIDS Helper (Deploy MDX script feature).
Not so sure about the MDX.. can't test it right now.
I'm working in Report Builder with an .rdl file and i was wondering if it's possible to basically add my entire .rdl report as a Sub-Report of itself and based on results in a dataset run that sub-report once for each result. Something like;
Dataset for 1 goal, would not run the sub-report since the main .rdl file will run for 1 goal, this is the way it is intended to work with an .rdl template;
I want to know if it is possible to basically turn the entire report into a 'grouped' element, that way if i have a dataset like this below, with 4 goals associated, the entire .rdl report will run one time for each result, 4 in the case below, and render the graphs and 'Goal Projections' for each iGoalID. Below is two of the four goals to give an idea what i mean, i'd want that to render for all 4
I have tried to just group everything in a rectangle, or even try to figure out if i could basically include the entire .rdl file in a table element to then group off of the iGoalID for multiple datasets, but I can't seem to find any way for this to be accomplished.