Microstrategy Training metric creation - microstrategy

I am just trying to create a report with basic predictions. I have created a Freeform SQL report with the following query:
select Customer_ID,
Month,
Sum(Amount) as Amount from Transactions
group by customer_ID,MRR_Month_DT
I have declared Customer_ID,Month as Attributes and Amount as Metric. Report has no issues when running it.
Now I am just trying to add Training Metric from Insert -> New Training Metric -> Forecasting Number values (Linear Regression). I have given Customer_ID as Independent metric and Amount as Dependent Metrics. In the next step There are two options for destination folder
1) First one is directory path of My report
2) Report objects
When I select the 1st option directory path, Predictor training metric is created on the path and am able to see the training metric in my report as well. but when I select Report Object, I am not able to see the training metric. Can somebody tell me what I did was right. Why I am not able to see the training metric if I chose report object.
P.S. I am using Microstrategy Desktop 9.4.1

Related

Tableau Target Vs. Actual - Can not get totals to show correctly

I am having trouble showing the correct totals in my tableau worksheet.
I have supervisors that are part of specific zones that need to complete a certain number of tests in different categories. For example, supervisor 15716 must complete 8 tests in category 1. I need to show the target, which is a number stored in the database and show the actual number of tests in that category that have been completed within a date range. I have it working, but Im not sure if I did it correctly because I can not show any totals.
System target - number stored in database
CountOfSheetID - calculated field
Percent Compliant - calculated field
Try this approach -
First define a calculated field called [Within Date Range?] as
[Date] >= [MyStartDate] AND [Date] <= [LastSelectedDayOfMonth]
and put that new field on the filter shelf, only including data where [Within Date Range?] is True. (You could also just filter the [Date] field if that is flexible enough for you)
The you don't need the CountofSheetId calculated field at all. If you want to know how many records have a non-null value for [SheetID] within your date range, you can simply drop [SheetID] on a shelf and choose to treat it as Measure with the aggregation function COUNT()
Then just build your visualization to show the counts you want (not percentages, the actual counts)
Finally, you can convert counts into Percentages by clicking on the pills for your Measures and choosing Percentage under Quick Table Calcs. You'll want to experiment with the "Compute Using" setting to tell Tableau how to compute your percentages -- i.e. define percentage of "what".
Percentages are implemented as table calcs in Tableau. Read the help to understand table calcs, especially the description of partitioning and addressing.

What is the use of report level in dimensional level metric in MicroStrategy?

MicroStrategy allows us to create a dimensional metric. For example, I can create a revenue metric to be calculated at the category level. This level can be mentioned as part of the metric definition.
What is not clear to me is, why should we have report level along with the particular level like category? What would be the scenario where we should retain the report level vs. remove the report level while defining the metric.
If you remove the report level, calculations will always be performed at category level. SQL will be something like that
select category, sum(amount)
from table
group by category
for example there are two attributes in Report 1) Country 2) Category
Scenario 1: Amount of each category is constant among the countries, the above sql works
Scenario 2: Amount of each category is also divided among the countries, the above sql wont work and report level is required. The required sql for scenario 2 should be
select country,category, sum(amount)
from table
group by country,category

Sales vs Profit Dashboards in Tableau

I'm trying to achieve a viz in Tableau in which If I click on a paramteer value called sales then sales viz should be selected and if I click on parameter value Profit, then profit viz should be displayed.
Can this be done using parameters in the first place?
Or Action filter is the only option?If action filter is the option can I make sure that If I select one parameter say Sales then the other Viz should be hidden automatically.
I found this link in the tableau training tutorial which might be useful for you.
https://www.tableau.com/learn/tutorials/on-demand/advanced-training-parameters
Steps to follow.
1- Create a parameter with data type "string" which will display either Profit or Sales as values.
2- Create a calculated field with case when function to link your parameter to the measures you want to use (in your case sales or profit).
CASE [Parameter - Sales or Profit]
WHEN 'Sales' THEN [Sales] ## assuming your sales dimension is sales.
WHEN 'Profit' THEN [Profit] ## assuming your profit dimension is profit.
ELSE 'Others'
END
This link would be helpful http://onlinehelp.tableau.com/current/pro/desktop/en-us/help.htm#changing-views-using-parameters.html
3- Build your graph
4- Show Parameter control (the one you created in the first step).
Every time you update the parameter, the graph will be updated.
Hope you find this useful.
A simple solution is to put measure values on either the row or column shelf; and measure names on the filter shelf. The show the filter control for measure names.
The downside is that people can choose other measures that you did not intend to expose
Yes, you can do it with parameters. You use a layout container to hold each sheet and then the parameter will filter one and not the other.
See this post for details. http://www.bfongdata.com/2014/10/chart-creation-with-parameters.html

How to create a column in Microstrategy that contains the sum of another column

I want to make a column that contains only the value $18,432,807 so I can find the percentage that that months profit is of the total profit.
If you right-click on a metric column, you should be able to choose new -> metric. You'll then be prompted to provide a formula, where you can use other metrics also in the dataset.
you can do as loco suggested, or you can create another metric at Year level and then a metric with does OriginalMetric/YearMetric

Cognos Crosstab Report Calculated Column Totalling Incorrectly

I have a report in Cognos 10.1.1 that is pulling Profit, Pounds, and Profit/Lbs. Each query has a field 'Measure Unit' that is labeled as 'Spread $', 'Spread Lbs' or 'Spread $/Lb'. It joins these three queries via a union and then loads them into a Crosstab list. The individual queries work correctly, and when dumped into a List Report are fine, but for some reason when in the crosstab report, the calculated profit/lbs column is always wrong. How can I get the calculated column to total correctly in the crosstab?
Three queries pull seperate Measure Units and measures for Profit, Lbs and Profit/Lbs.
The calculation for Profit.
The Calcuation for Profit/Lbs
Properties for the measure fields.
What the report looks like. Middle column should equal Spread $ / Spread Lbs, but does not when in crosstab.
Try to customize Solve Order for your calculations.
Default behavior is Total(Value1/Value2). You need to archive Total(Value1)/Total(Value2)
(Don't change your formulas, just set Solve Order for calculations)