I’m trying to manipulate a Tableau function to QS. My output is not getting the same number, so I am doing something wrong here. Can anyone help with this?
Tableau - { FIXED [marketplace_id],[monthending],[page_type],[device_type]:MAX([traffic_o])}
QS - maxOver(traffic_o,[{marketplace_id},monthending,{page_type},{device_type}],PRE_AGG)
Are you applying any visualization filters?
In Tableau, the FIXED() function gets evaluated before the visualization filters. In QuickSight, your LOD expressions can be executed before or after the filters. If you want to replicate the FIXED() function in QuickSight, you should use the PRE_FILTER parameter in you LOD Expression.
https://help.tableau.com/current/pro/desktop/en-us/calculations_calculatedfields_lod_filters.htm
https://docs.aws.amazon.com/quicksight/latest/user/level-aware-calculations.html
Related
I need help on a basic calculation that I'm unable to figure on Tableau.
I am trying to setup a calculated field that has dependency on its previous value to calculate its current value. Here is a simple example from Excel -
Sample Exhibit
As you can see, each value in a row is dependent on its previous value and multiplied by a constant.
In Tableau, when I'm trying to create a calculated field, it is not letting me refer to itself (-1 lagged value) in the code. I'd appreciate any help on how this can be resolved. Thanks in advance!
Tableau can do this client side with a table calc. You’ll have to learn how table calcs operate from the help- especially partitioning and addressing. Then you can use the function Previous_Value() to refer to the previous value. Practice on something simple first to make sure you understand how previous value() works. Hint, the argument to that function doesn’t mean what most people assume it means
If you want to perform this calculation server side instead, then you’ll need to use custom SQL so you can specify an analytic aka windowing query
Check the LOOKUP field to get the value from the preceding row. For example: LOOKUP(SUM([Value]),-1)
https://help.tableau.com/current/pro/desktop/en-us/functions_functions_tablecalculation.htm#lookupexpression-offset
You may need to make yourself familiar with the Table Calculation partitioning if not getting the expected result.
In tableau, the expressions are
{Include Provider_data,Provider_Key,Provider_Item,Provider_service,Class_key,Schedule_price_key,Conftype_key:Max(Effective_Date)}
And other is
{Fixed Provider_data,Provider_Key,Provider_Item,Provider_service,Class_key,Schedule_price_key,Conftype_key:Max(Effective_Date)}.
How can we achieve these expressions in Qlikview ?
The most similar approach could be the TOTAL keyword, inside a Max (or other aggregation function).
Max(TOTAL <Provider_Key> Effective_Date)
The previous code will ignore the Provider_Key dimension, even if you are working in a lower level of detail. Hope this will guide you.
I have an SSRS report which is reporting sales grouped by Month. One of the columns in this report is a calculated fields which takes 2 values and passes them to a custom code routine that is defined for this report. The textbox that is populated with the following code:
=Code.DivideBy(ReportItems!textbox21.Value, ReportItems!EarnedIncome1.Value)
All this Custom Code does is to divide the First Parameter by the Second Parameter (in this case whatever is in textbox21/EarnedIncome). The response is them shown on the screen as a percentage.
Below is an example of the report:
1 http://www.propelpos.com/images/screenshot002.jpg
This worked great. What we are trying to do now is to graphy the % that is in the BDX Loss ratio column which is figured out by the formula above (dividing Losses by Earned Premium)
When I try to copy the expression in the chart data and set the Category Groups to PeriodYearMonth (same as all the others), then I get a straight line.
I have no idea where to go next. Any ideas would be much appreciated.
I agree with #Neil. You can also Add the Calculated field in you data set properties. Take a look at the following screen. You can set the expression to calculate the data for your line chart.
Hope this helps!
I would suggest doing the calculation in your query and then using that computed column in SSRS. If you need help figuring out how to do that, let me know.
Is it possible to use variables ,that are defined in crosstab like total measure variables etc
in the formation of charts in iReports...
Like I need chart of percentage of certain measure which in crosstab I calculated using total variable. How to do that ??
As per my understanding for reporting with iReports, it is not possible to use those variables that are defined in the crosstab in charts. Crosstab is a seperated component from charts. All the variable that are defined in the crosstab are defined in the scope of the Crosstab only.
For this fix I have to modify by query. Now they are somewhat complex I have used Common table expressions http://msdn.microsoft.com/en-us/library/ms190766(v=sql.105).aspx to get all the desired fields in my query only and used them directly in the iReports charts.
Hope this helps..
I want to create a crossstab with stacked measures but can't seem to figure out how to accomplish this. I basically want an output that looks like the below:
looks like this type of output can't be done using the crosstab wizard so I've tried manipulating the xml but still not getting this to work.....any suggestions would be greatly appreciated.
Thanks
You can achieve this, either by creating new variables for variance and adding them to row groups or by creating new fields, calculating the variance values in the java/sql code and using them as row group values in the crosstab.