I have a field like HW-OS Version,HW-RiskRatio,Device_HW_Count and there are some HW_Version say A,B,C,A and their risk ratio as 200,300,100,400.Now using Kibana if i try to show the count and the risk ratio i get the output in the above format whereas I want the output as grouping by the HW_version field,which Kibana is not able to do.I read in the documentation that for such cases we need to write Json query which could do the grouping like a SQL query.Can someone please explain me this with the above example.I am not able to proceed forward
Did you try doing the aggregation using the Terms option in a Bar Graph for example, where you can select the field HW_version, and then maybe you can have your filters as sub-buckets according to your need, so that your graph would be based on a group by of the field you selected.
i.e: The Y Axis would be having the count (risk ratio), and the X Axis would be divided according to your field HW_version which should be having bars for (A,B,C). This SO could be helpful.
Hope it helps!
Related
looking for help or thoughts, Reportbuilder - I have a count value that has been generated from a count of a text field. Matrix report, count of PurOrd and count of PurIn. The report displays a numeric value rather than the actual text/word. I’m struggling to find or workout the expression required to use the count value to return whether “Yes” or “No”. If PurOrd (count value) = PurIn (count value) then “Yes” Else “No”.
Without more info, like where in the matrix this will appear and what your current count expressions look like I can't give an exact answer so you will have to adjust this to suit.
Basically you can just use an IIF() statement to compare you two current expressions, something like...
=IIF(Count(Fields!PurOrd.Value) = Count(Fields!PurInv.Value), "Yes", "No")
If this does not help, EDIT your question and add all relevant info such as screen shots o the report design, current expression being used etc.
I have a field in SSRS that returns the value of numbers varying from ## to #######. I want these numbers to be separated by thousands. I have seen a few posts saying you could use this:
=Format(Fields!Number.Value,"#,#.##")
However, I have this textbox to display data from a different dataset, like:
=First(Fields!Price.Value, "DataSet3")
Now, the question is how do I combine both? Is it possible to wrap it like this:
=Format(First(Fields!Price.Value, "DataSet3"),"#,#.##")
If I do this and run the report then the output on the text field is just #,#.## and not the actual number itself.
Input: 100000000
Output that I expect: 100,000,000
Output that I get: #,#.##
Any help is much appreciated. Thanks!
This is definitely some weird functionality. I didn't figure out exactly what was causing it, but I found that adding a datatype cast to the expression resolved the issue.
=FORMAT(CDec(First(Fields!XYZColumn.Value, "ZYXTable")), "#,#.##")
Hello awesome people of stackoverflow!
I need help with a simple problem with my SSRS expression.
How could I do this in SSRS?
As you can on the 2nd table below in my excel screenshot.
for each row we divide -BC5...-BC10 to column/row BC4. To get the desired results for table 2 in excel column total 2018 into column/rows BC17 upto BC22.
I've tried referencing my textbox like this
ReportItems!TextBox1.Value / ReportItems!TextBox2.Value.
But got me the wrong values.
Can someone please help.
Thank you!
If those two tables are in the same table/tablix then it should work with the expression that you wrote (try to type it instead of copy paste sometimes that may work).
=(ReportItems!Textbox7.Value /ReportItems!Textbox1.Value) * 100
If they are not in the same Table/Tablix then you should write like the following:
=(Fields!ColumnName1.Value / Fields!ColumnName2.Value) * 100
Format your cells.
There is not enough info to give you an exact answer but you should be able to work it out.
The first thing you need to do is get the context of the aggregations you want to work with. So click on the cell containing the number you want to divide ([Sum(DiscountOERestated)] ). In the row and column groups panel near the bottom on the screen, look at the row group that is highlighted. For this example I'll assume the row group is called grpCategory.
Now we need to do the same for GrossCatalogRestated. However, GrossCatalogRestated in the top tablix does not appear to be an aggregate. I'll assume it should be the total GrossCatalogRestated for the dataset. For this exmaple, we'll say the dataset name is dsMyDataSet. If it's within a row group, just swap the dataset name out with the row group name that it sits in, just like we did for DiscountOERestated .
So you expression would look something like
=SUM(Fields!DiscountOERestated.Value, "grpCategory") / SUM(Fields!GrossCatalogRestated .Value, "myDataSetName")
This will give you a deicmal result, somehting like 0.025 . You then just need to set the format property to say, "p1", so it shows as 2.5%
If this does not work, edit your question to show the expressions in the cells you are working with along with the rowgroup and dataset names.
I'm new to SAP Web Intelligence and I'm trying to create a report with a summary column based on multiple criteria. Below is my desired output in Excel as an example. I am having trouble coming up with ways to create this summary column (col H)
Link to the example here.
Essentially, I need column H to do the following:
Score = 0
For each cell in Range C:G, if cell isn't empty, get amount of points test is worth based on region the user is in, and add that score to "Score", and show in Column H as a total at the end.
Is this possible in SAP WI? I really really appreciate any help with this (even a push in the right direction).
Thanks!
I believe you're looking for a compounded IF function in a Variable here.
If you're used to using Excel, you will recognise the similar syntax for it:
=IF(TEST;Value if true;Value if false)
You will want to compound that so that you have and IF based on the 'Region' followed by a list of IF statements for each test that add up the points, followed by another list of IF statements for each test based on the other 'Region'
Something like the following should give you the basic start:
=If([Region]="Oceania";If(IsNull([Test #1]);0;1)+If(IsNull([Test #2]);0;1)+IF(...);If(IsNull([Test #1]);0;2)+If(IsNull([Test #2]);0;0.5)+IF(...))
From there you add the relevant test columns into the sums to get the totals for each row.
I inserted three text boxes to test how this could work:
Text81: =1
Text82: =2
Text83: I want this one to be the sum of Text81 and Text82
Thanks in advance for your help on what I think is a pretty simple problem.
There are a couple options that spring to mind.
First you could always modify the data source for the report to include the calculated field.
Second, which is what your question drives at, you can do something like this:
=[Text81] + [Text82]
Should work when typed into the Control Source of a TextBox provided Text81 and Text82 are the data field names from the Data Source of the Report. If they are not you would put the corresponding data field names in the square brackets []
Hope this helps