Using a Microstrategy Prompt Answer twice - analytics

I'd like to know if a Microstrategy Prompt answer can be used twice. That is , I'd like to prompt the user once for an attribute value , and use the same answer in two different filters.
For instance , suppose I'm prompting to check whether Country A is equal to a Country C ( chosen by the user through a prompt) , is it possible for me to use the same answer(country C) to filter out cases where a Country B is equal to Country C
All help is appreciated

If you will use the same prompt object in both filters you will be prompted only once.

Related

Snowflake: query_history_by_user() does not yield expected result

Snowflake provides the QUERY_HISTORY_BY_USER() function to actually see the queries from any user. I'm using this command for querying:
select * from table (
<DATABASE>.<SCHEMA>.query_history_by_user(
USER_NAME=>'myUser',
END_TIME_RANGE_START=>to_timestamp_ltz('2021-11-24 06:00:00 -0100'),
END_TIME_RANGE_END=>to_timestamp_ltz('2021-11-24 17:00:00 -0100'),
RESULT_LIMIT=>100)
);
The problem is that this query does not yield any results. However, if I start the same query without the USER_NAME=>'myUser' statement - which is semantically the same, since the executing user is taken as a default - I do get the expected result. The result for a different user than mine (i.e. USER_NAME=>'differentUser') is also empty. All queries are executed as ACCOUNTADMIN, so rights are presumably not the problem.
So the question is: why does the query work without any user provided but does not work with a user specified?
Any help is really appreciated!
I sugest wrapping user name with ": USER_NAME=>'differentUser' => USER_NAME=>'"differentUser"'
QUERY_HISTORY_BY_USER
A string specifying a user login name or CURRENT_USER. Only queries run by the specified user are returned. Note that the login name must be enclosed in single quotes.
Also, if the login name contains any spaces, mixed-case characters, or special characters, the name must be double-quoted within the single quotes (e.g. '"User 1"' vs 'user1').

How can i match and filter table by user input in data studio

I have a list of objects. In my case, the object is a contract (agreement). The contract has address field as string
I want to make it possible to filter by address. Or rather, the user enters the beginning or part of the address and the table is filtered based on the user input text. The problem is that the user can enter with a capital or small letter or something else, and thus strict equality does not work. I need a matching address with user input.
Data structure:
Input box controller:
This input box controller works only then user put exactly the same address as in data structure, for example Juhkentali tn 32, Tallinn. But my idea is, that user can enter only juhkentali and will see all contract with matched address
Please help me, how I could solve this problem.
I was facing the same issue. So I converted it to lower case using the lower function as commonly all searches are in lower case.
For example -
My data had a patient name column with the following values
Wagner,
ROBBINS,
doe,
junioR
So I converted the patient name column to lower case and used it in the input box. And, my visualizations used the original patient name column.
The only restriction with this is that the users have to search only in lower case.
Please let me know if this helps or if you got a better solution.

Detect when (Select All) is checked for multi value parameter

I have a report with a multi-valued parameter on it. I'm looking to output the selected values which is accomplished with Join(Parameters!State.Label,",")
Every solution I've found on the web indicates I should use something like the following to detect when the (Select All) "value" is selected.
E.g. expression for the text box on the header should be:
="State: " & IIF(countrows("prc_prompt_state").Equals(Parameters!State.Count),"(All)",join(Parameters!State.Label,","))
CountRows() tells me the total number of parameters available, e.g. 8 states in Australia. Parameters!State.Count is supposed to tell me how many are actually selected by the user. However this always reports the full value (8 in this case) regardless of how many are selected. This is in agreement with the official docs (https://technet.microsoft.com/en-us/library/aa337293(v=sql.100).aspx), but NOT in agreement with every single search result I come up with on how to solve this problem.
So how can I rewrite this expression so I can find out when (Select All) is/isn't checked? I'm using report builder 3, which I believe is based on the 2008 edition - we deploy to Azure, but I haven't got that far yet.
Examples of questions whose answers seem to be wrong:
Displaying Multi-Value Parameters
SSRS: Can I know if user selected "ALL" in multivalued param?
This is old, but google found it for me, and then I figured out an answer on my own that worked. (I was using a list of users.)
I created a separate dataset that returns a count of all available options in the default parameter lookup (username). Then, I assigned that as a default value to an internal parameter. (UserCount) This worked as a text expression:
=Microsoft.VisualBasic.Interaction.IIF(Parameters!username.Count = Parameters!UserCount.Value, "All Selected", Microsoft.VisualBasic.Strings.JOIN(Parameters!username.Value, ", "))

SSRS 2008 Report Builder 3.0: Optional User Entered Parameters

My program allows the user to enter in the parameters Start Date, End Date, and Shift.
I am going to add another one that is called VCN. This allowed the user to enter in a specific part number and the program will search for the data related to it.
However, when I do this I want to be able to shut off the other 3 parameters. This means the user can either enter in the first 3 parameters OR a VCN number. When a user enters a VCN number I do not want the search to be bound by my other 3 parameters.
At first glance it would seem you are better off with two reports and this would be my preference.
I haven't found a way to disable a parameter based on another but I would suggest to use the VCN parameter as an override. In this I would:
Set VCN up as optional and allow nulls.
Have VCN have a default and set to null and allow the report to run as normal.
If the user enters anything in the VCN then use this and ignore anything in the other parameters.
Then use if VCN is null then disble the other queries or do as you need.

Database in conjunction with Barcodes

This is sort of a broad question - hope I'm posting in the right board ....
How can I go apart setting up a database (Im thinking about access here? )
I want to set up some fields for my company - such as name , number , address , email address etc etc.
I have a dymo label printer to print out the barcodes. Ive tried inputting the information on the barcode itself but the barcode becomes 'too big to print' , so I want to be able to link a database to the barcode so when its scanned it will load up all the information.
Sorry I have no code - I just have no place to start ):
Cheers for the help!
If the barcode is too large, you can change its size in Properties in DYMO Label.
There is a function in DYMO Label called Import Data and Print. You can design a label with barcode and text objects, then select a file and link columns to objects (basic drag and drop). I hope that answers the question.

Resources