Dynamic dimension used in Qlik bar chart is not filtering data on selecting any bars - bar-chart

I've created a bar chart in Qlik dashboard. Using inline load I've added static data to filters(Listbox) of my dashboard. It is unavoidable so have taken static data for filters.
Based on the item selected in filters(ListBox) by user I'm creating a dynamic dimension on qlik bar chart using actual fields from the data source. but when I click on any bar its not filtering all associated data of dashboard and even bar chart is also not filtering accordingly.
Can you please suggest any workaround for this.
Thanks

You could try to split the data source column into something you could use for filtering. I'll assume that the column coming from the Data Source is named ProductCode. In the LOAD script you'll have something like :
LOAD
...
ProductCode,
...
You could try to add two new columns like this :
LOAD
...
ProductCode,
Left(ProductCode, 2) as ProductCodePrefix,
Right(ProductCode, 1) as ProductCodeSuffix,
...
Could this help?

Related

How to add timezone drop down in wordpress with contact form 7 plugin?

I am creating a website and it contains query form which includes timezone dropdown .
How can we add time zone drop down using Contact form 7 ??
Attached is output I want.
Thanks in advance!!
You can use the wp_timezone_choice function available within WordPress. This function returns values in <option> form so you can use something of below sort:
<select>
<?php echo wp_timezone_choice( '' ); ?>
</select>
Please note that I have passed empty string so that user can select an option. If you want any timezone to be preselected then you can pass the same timezone instead of empty string.
First of all you will need a timezone database. There are several which you can google for or donwload one from here.
Next import your data into WordPress, if you have a CSV file you can use the plugin Really Simple CSV Importer to import the timezones as a taxonomy for example.
The other option is to import the data as a separate table in your DB, it all depends on how you want to manage the data. If you want to be able to differentiate timezones between different continents/countries/regions then best to store them as a taxonomy and create parent terms for each region you want to differentiate.
Next to display them in your form, use the dynamic dropdown field available with the Smart grid-layout extension plugin.
The dynamic dropdown allows you build a select field using either a list of terms from an existing dropdown (see this video tutorial on how to use it) or using a custom filter and programmatically building the list (see this tutorial) using your database custom table if that's the way you imported your timezone data.
Last but not least, the dynamic dropdown also allows you to transform your select field into a select2 field which is handy for large lists as it allows your users to search for a particular timezone.

EXCEL How to change the REST URL based on the cell parameters

I created a web query as below in Excel.
New Queries --> From Other Sources --> From Web
How do I pass in the cell value as a parameter to the Url?
I have search bunch of articles, including in the stackoverflow. None of them work.
There is 1 article says I can do this in VBA.
ThisWorkbook.Sheets("[SheetName]").QueryTables("[TableName]").Connection =
But it is not there.
Any one know how to do this?
More information:
It is connecting to a REST server, and geting back the JSON result.
I found an article discussing how to create a query link mine, but it has not options to add the parameters. Please see the link. Step 3 have the URL typed in.
https://success.planview.com/Planview_LeanKit/Reporting/Advanced_Reporting/030Configure_A_Connection_To_The_Reporting_API_With_Excel
Give the cell a name, e.g. pMyParameter.
Open the query editor and create a new blank query (New Query --> Other Sources --> Blank Query). Give that query a name similar (or same) to the cell name (let's call it pMyParameterQuery). Open the Advanced Editor and replace everything with the following.
let
Source = Excel.CurrentWorkbook(){[Name="pMyParameter"]}[Content]{0}[Column1]
in
Source
You'll see in the query list that this query does not return a table but text (or a number / date / ... depending on the contents of your named cell).
Now switch to your web query and open its Advanced Editor. Find the line that has the URL, probably something like this:
Source = Web.Page(Web.Contents("http://www.example.com?someParameter=someValue")),
Here you can use the result of the parameter-query in the URL like this:
Source = Web.Page(Web.Contents("http://www.example.com?someParameter=" & pMyParameterQuery)),

Angular Table Sorting - Data shows up but doesn't sort

I'm trying to implement sort function to my table in angular, and all my data from my rest api does show up in the table. But the problem I get is when I click on arrow my data in table doesn't sort. My data comes from a method in other ts file witch get the data from rest api
What I have tried is followed this links but it doesn't work
Angular Material Table Sorting - Data Doesn't sort when inside a *ngIf condition
Sorting Not Working Angular Material Design Table
https://material.angular.io/components/table/overview#sorting
I have some problem to upload code
This is my controller code, the method to get code from rest api: https://imgur.com/a/qX2AcNJ
This is my code who should take a data from controller and show in html: https://imgur.com/a/OR0SQvH
This is the html file: https://imgur.com/a/q4FJmuK
Your table is missing the instruction on how sorting must be done. You should add the following to your table element.
<table ... (matSortChange)="sortData($event)">
Then you need to to add the sortData method to your ListComponent. A detailed example can be found at https://material.angular.io/components/sort/examples.

2sxc - One content-type, one list view, one cshtml, some rows not shown

Using 2sxc to create a new app with only:
- One content type
- 15 rows of data
- One view (razor, single cshtml file)
When I call the #foreach loop, only some of the data is shown in the list view (apparently the ones inserted in the current dnn module and only through the "new" button in the toolbar). If I add the row in the admin panel, it will not show. When I deleted the module and inserted it again, I can see the data in the admin panel, but not in my list view.
Attached screens.
I tried calling the data with:
#foreach(var Content in AsDynamic(Data["Default"])){...}
or
#foreach(var e in List.OrderBy(e => e.Content.Farmaco).Where(e => e.Content.Cat == "1")){
var Content = e.Content;
... }
but the result is the same.
Am I missing something really obvious?
DNN 9.1.1
2sxc 9.04.01
https://drive.google.com/file/d/0B-4bmuuNWVx2MUxxa0g1SExqUkE/view?usp=sharing
Yes, you're clearly not familiar yet with "raw data" and items-assigned to a modules.
In our code you get the module-data with Data["Default"], whereas the raw-data you would get from a query (then also with Data["Default"] or Data["Whatever-Name-Your-Stream-In-Your-Query"])
If you want to work with all data, you would again use a query, or App.Data["TypeName"] and build on that.
Check out http://2sxc.org/en/blog/post/12-differences-when-templating-data-instead-of-content

How to reference a chart object on an MS Access subform?

I have created a dozen different charts using the chart form wizard in Access (so each chart is really a separate form). I have also set up a GUI that has the following nested form structure:
frmMain -> frmSubMain -> Child0 (a subform of frmSubMain)
I have a list box on frmSubMain that lists all the charts, and when a user selects one, I use VBA to change the Source Object of Child0 to the appropriate form for the selected chart. (So in essence, a user can select the desired chart and it is presented.)
I am now trying to add a button to frmSubMain that will copy the currently selected chart to PowerPoint, but I am having trouble with the copy command and referencing the chart object. The chart object on each of the forms is called OLEUnbound0, and here is what I've tried (I have the form name for the chart as a variable 'my_form'):
Forms(my_form).OLEUnbound0.acOLECopy
Me.Child0.OLEUnbound0.acOLECopy
Me.Controls(my_form).OLEUnbound0.acOLECopy
Each gives a different error (for example, the second one gives the error "Method or data member not found"). Part of my confusion is that I have the form name but as a variable, and I'm not sure how to use that variable (since I can't use the standard Forms![frmMain]![frmSubMain]! etc.). What is the syntax for using a variable to reference a subform?
Try:
Me.Child0.Form.OLEUnbound0.Action = acOLECopy