A dynamic text field in QuickSight dashboard - amazon-quicksight

I have a dashboard and I want to show when the dataset was created. I have a column in my dataset and I was trying to use QS Parameters or Calculated Field, but no luck. I can create a static parameter and output that value in a title of visualization, however I can't dynamically select max(my_last_date_filed) from the dataset.
Any ideas?

I used Insight type, where I defined variable as following: Maximum.timeValue.formattedValue, which solved my problem

Related

How pull in fields value from created parameter

I created a parameter [GroupID] that is used to query several datasets in my SSRS report. It is using the field [GroupID] from my GroupList_Rolling12 dataset. An example of [GroupID] is 77610N. When 77610N is selected, all of my datasets are correctly 'filtering' for this [GroupID].
I now need to create a text box that returns the [GroupName] of [GroupID]. In other words, when 77610N is selected from my GroupID parameter, I want the [GroupName] that is associated with the selected GroupID parameter to display.
I'm still very new to SSRS and cannot figure this out. I tried creating the expression =First(Fields!GroupName.Value, "GroupList_Rolling12") but that did not work since it simply returns the first value from the query.
I also tried =First(Parameters!GroupID.Value(0)) but this also did not work
I also tried this expression =Lookup(Fields!GroupID.Value, Fields!GroupID.Value, Fields!GroupName.Value, "GroupList_Rolling12")
)
Can you please help?
You can reference the parameter label directly like this
=Parameters!GroupID.Label
There is no need to put the index on the end (=Parameters!GroupID.Label(0)) unless your parameter is multi-value, in which case it would select the first selected entry.

Interactive switching of value fields in Quicksight Visuals

I'm sure this is a pretty noob question, but I am stuck. I have found a tutorial on how to use parameters to set switch between fields here: https://www.youtube.com/watch?app=desktop&v=Dk9NtZbH2Hw I was wondering if there is a way to do this with value fields, like say on a heat map visual, to be able to switch between revenue and cost via dropdown? I can not get a ifelse formula to work with these types for fields. Thank you in advance!
I dont't know much about the specifics of your data or the error, but similar to the video, you could create a parameter with manual values "Revenue" and "Cost" and set that as the dropdown control on the plot, then create a calculated field:
ifelse(${parameter} = "Revenue", {revenueFieldName}, ${parameter} = "Cost", {costFieldName}, "Some Default")
Then in the heatmap value field, use this new calculated field instead, and it should toggle based on the parameter.

Trying to generate SSRS report based on input parameters in visual studio

I have an AX query dataset that I'm trying to use to generate an SSRS report. I want to the user to be able to enter 2 parameters (Date and ProjectId) and have the SSRS report return a table based on the query using the parameters inputted by the user. Can't write any code so it needs to be purely graphical.
You can simply add your parameters to query as query ranges.
In the AOT, click Queries, and locate the query that you want to define a range for.
Expand the query, click Data Sources, and then expand a data source.
Right-click Ranges, and then click New Range.
Right-click the new range, click Properties, and then select a field in the Field property list.
Type an expression in the Value property to specify which records are retrieved.
here it's a helpful link for creating queries with ranges:
https://msdn.microsoft.com/en-us/library/bb314753.aspx
Here is a walkthrough to follow:
https://technet.microsoft.com/en-us/library/cc636713.aspx

iReport + XPath - Sum String Column

I'm building a report where I have a subreport. This subreport brings some data through XPath, this means it's everything strings from a XML. One of the columns of this subreport has some values, where I need do sum them and show in the end of the table.
I don't know how to put this to work. I've tried to create a variable with sum parameter, but it does not work.
Did anybody need this before?
Scenario:
I load a lot of values from a XPath query, e.g:
/something/something1/something2
This query returns some fields according to my needs. With them I build a table (in a subreport). The problem is: the last column (4), values are strings from XML.
iReport version: 3.0.0
Really thanks!
Solution:
What I needed? According to the original post, a column with strings read from a XML through XPath and a footer with the sum.
Result from column SUM
What to do? Create a variable where you'll keep your sum. After created, edit it. e.g:enter image description here
Fill variable expression with the format you need. Here I used
new BigDecimal($F{theFieldToSum});
Click ok. Now the variable is created, you must create a new TextField where you'll show your sum. Create it and edit it. Here I used the following format:
new java.text.DecimalFormat("#,##0.00").format($V{theVariableYouCreatedBefore})
Click "Apply" and that's all. Compile your report and now you'll have the expected result. For sure, you can do some adapt, but in general this is the process.

Problem with birt report in PDF format

I am creating a report in BIRT. My problem is a data set value which I am putting inside a table column. The returned value is a sentence, but in my report that column is showing only the first word. How can I break the line of the column to show the full data?
Try to use Dynamic Text instead of Data field, which I assume you were using.
As expression write something like row["MY_COLUMN"].

Resources