Sort chart in qlikview - qlikview

Hello I did sort in my chart but it doesn't work,
i don't know why?

How is your sorting now? You must sort your second dimension by the expression you are using.
Edit
Have a look at this:
https://community.qlik.com/thread/181828
They solve the problem using aggr()
//micke

Related

grafana multi value query in timestream

i have some problems displaying my aws timestream data in grafana. I added as a global dashboard variable DevEUI with 3 different specific values. But when i am using the multivalue syntax ${DevEUI} in my query with more then one value i get everytime a error.
hope somebody can give me a hint.
Regards and thanks in advance
You are most probably having a list of values as the value of your multivalue Grafana variable, but you are still using the = operator in your query. Try ... and DevEUI IN ('${DevEUI}'). Or maybe without the single quotes or the parantheses... the exact syntax depends on your Grafana variable.
But, this is just an educated guess, since I cannot see neither your database schema nor the definition of this Grafana variable (both of which are important details in a question like yours, for future reference).
This is how I did it for a multivalued string value:
timestream_variable_name = ANY(VALUES ${grafana_variable_name:singlequote})
You might have to adjust the formatting Grafana applies to the concatenated variable value it generates, depending on your data type.
I know this is long after the original question but #alparius pointed me in the right direction so I wanted to update the fix for the problem Joe reported.
Use formatting to get the proper quotes/values when formatting your query. Something like this:
Select * from database where searchiterm IN (${Multi-Value_Variable:sqlstring})

Is there a way to convert this MDX syntax to DAX?

I'm changing a legacy multidimensional analysis services to tabular and "Converting" the MDX measures to DAX. (I don't have much knowledge using MDX)
I found the script below and i'm not sure what it is doing.
([Origin].[Origin].&[BUDGET FILE],[Measures].[Value])
I think it's is using the Column Value inside the Budget file located in the Origin to fill or create something in the measures.
So, first can anyone help me understand what this code is doing?
And second, would DAX support such thing?
Thanks!
Here is the equivalent assuming the Value measure is a Sum.
CALCULATE(SUM(YourTableName[Value]), 'Origin'[Origin]="BUDGET FILE")

Nesting Expressions

I have and expression:
=UCASE(Fields!MotherFullName.Value)​
and an expression:
=IIF(ISNOTHING(Fields!MotherFullName.Value) ,"-",Fields!MotherFullName.Value)
I want to nest them into one expression since they are operating on the same value, what must I do?
Using your code and taking a pass on evaluating the syntax...
=IIF(ISNOTHING(Fields!MotherFullName.Value) ,"-",UCASE(Fields!MotherFullName.Value)​)
What have you tried?
=IIF(ISNOTHING(UCASE(Fields!MotherFullName.Value)​) ,"-",UCASE(Fields!MotherFullName.Value))
should work, but I'd Advise you to Create Additional fields in your report and they use them to arrive at what you need, since the fields you dont include will not be displayed.
Also, Make sure you are making your edits in the expression window, not directly on your reports.
I finished creating the report above and it is working well, but when I upload it into the CRM Dynamics online, it is greyed out as shown in the picture bellow: What must I do?

Understanding random ordering in Rails + postgresql

So, I'd like to do some random ordering when displaying data the code I have at this point is:
Timsheet.limit(1).offset(RANDOM(Timesheet.count)).first
I know that postgresql's (RANDOM) syntax is different than MYSQL's (RAND()) and Oracles (dbms_random.value) syntax.
I'd just like to confirm that my code is correct, from what I understand it's doing is, it's grabbing the first row, and offsetting the data in a random order?
Please help clear this up, thanks!
I think the following will work with all DBMS's
Timsheet.offset(Random.new.rand(Timsheet.count)).first

Order not working correctly in MDX

I'm new to MDX and I cannot get the ordering correct. I looked at references online and I think i sorted the query correctly, but the result of the query doesn't agree with me. Can anyone shed some light into what I'm not doing.
I have included a hypothetical example that is close to my problem.
The result of the query comes out without being sorted.
Any help is deeply appreciated.
Thanks
The 2nd argument to the Order()-function on your Rows-axis, must be the value or string to sort by. If you want to sort by the names of the SalespersonID-members, do something like this:
Order([Sales].[SalespersonID], [Sales].CURRENTMEMBER.MEMBER_NAME) on Rows