Pie Chart in QlikView - qlikview

I have problem with Pie Chart , when i have samll number. On the sector the percentages are superimposed and this problem of superposition is related to the values ​​too small.
Does anyone have a solution ie we can display the small values ​​without being superimposed on the level of the graph ??
Can see this link i have put the picutre :
enter link description here

In QlikView its a known issue.
What I usually do is go to "dimension limits" -> "show only value that are" -> "greater than" -> 5%.
You can use any number you want - tailored to your needs
All that's below 5% will go into "Other" slice
And by clicking "Other" you can drill down into it.
it looks like this (blue slice it "Other"):

I put list Value :
I do List Value : (
if(ValueList('Attributions RCI','Promotion RCP','Garanties', 'Promotion RCE') = 'Attributions RCI', sum({}[Dont COMP]),0)
+if(ValueList('Attributions RCI','Promotion RCP','Garanties', 'Promotion RCE') = 'Promotion RCP' , sum({}[Dont EXP]),0)
+if(ValueList('Attributions RCI','Promotion RCP','Garanties', 'Promotion RCE') = 'Garanties' , sum({}[Dont COMP]),0)
+if(ValueList('Attributions RCI','Promotion RCP','Garanties', 'Promotion RCE') = 'Promotion RCE' , sum({} [Dont RESP]),0)
)
/(sum({} [Dont RESP])
+
sum({}[Dont EXP])
+
sum({}[Dont COMP])
)

Related

How to display the values of Vector in the data browser of DolphinDB?

I execute the following code in the GUI of DolphinDB.
incomes=table(2016.07.31 - 10..1 as date, rand(100,10) as income);
eventdates = [2016.07.22, 2016.07.25, 2016.07.29];
x = incomes.date.binsrch(eventdates);
incomes.date.cut(x);
Then the GUI show the result
like this.
But I don't know the meaning of com.xxdb.data.BasicDateVector#64e2a63c. Can you tell me how to display the values of Vector simply?
You can try this way:
incomes.date.cut(x)[0]
The number in [] is the index of element you want to access.

Oracle APEX 18.2 -> need dynamic action based on list of values to make a field required

When overall_status in list ('Yellow Trend Up'...etc) then overall_description is required for user to enter information
overall_status:
Select List, Required-Above, Status Values(Red Trend Up, Yellow Trend Up) Dynamic Action * When Event=Custom, item=overall_status, condition=overall_status=Yellow Trend Up
True: Action=Show, Affect Elements=overall_description
overall_description:
Text Field * Appearance=Optional-Above
Validation=Value Required (YES)
When i run application/page and select Yellow Trend Up a Popup window appears with
Leave site? Changes you have made may not be saved Leave Cancel
Not sure what True: Action should be selected
Assuming you want the user to be required to fill in a description field when a certain value from the selection list is selected (like 'Yellow Trend Up' in this example), then a simple way to achieve this is to:
Create 'overall_status' as Select List.
For 'Page Action on Selection' choose: 'Redirect and Set Value'.
Create 'overall_description' as Text Field.
For 'Value Required' choose: 'Yes'.
In the 'Conditions' section of 'overall_description', choose 'Condition Type': 'Value of Item / Column in Expression 1 = Expression 2'.
For Expression 1 enter: 'overall_status'.
For Expression 2 enter: 'Yellow Trend Up'.
If you want to show this required description field if any value is selected in your 'overall_status' Select List, then choose 'Value of Item / Column in Expression 1 Is NOT NULL' and Expression 1 as 'overall_status'.

Displaying SSAS measure in thousands or millions

I have an Olap cube created using Microsoft SSAS. Inside I have a many-to-many relationship between source transaction currency and required "Reporting" currency. This is all functional, however to display a dynamic currency symbol I am using the "Currency" format string default and passing in a custom LCID based on the currency selected.
The problem with using the "Currency" format is the decimal places and large numbers. I am reporting millions of pounds/dollars and my CFO wants to see these numbers reported in thousands or millions. To control this I have read about using a special format string like #,, but this won't allow the currency symbol to be shown.
I had an idea to have a special dimension which would equate to 1, 1000, 1000000 and then create a calculated measure which divides by this (obviously defaulting to 1 and not aggregatable), but I have lots of measures.
Can anybody else advise on an alternative approach?
I would just set the FORMAT_STRING via a script assignment:
FORMAT_STRING(([Dim-Currency].[Currency Code].&[USD])) = "$#,,";
FORMAT_STRING(([Dim-Currency].[Currency Code].&[Euro])) = "€#,,";
You may use the SCOPE statement here:
Scope(AddCalculatedMembers([Measures].Members));
This = case
when [Measures].CurrentMember >= 1000000
then Cstr(Cint([Measures].CurrentMember / 1000000)) + " millions"
when [Measures].CurrentMember >= 1000
then Cstr(Cint([Measures].CurrentMember / 1000)) + " thousands"
else [Measures].CurrentMember
end;
End Scope;
Where Cint return int value and Cstr helps to join int value to text. I'm not sure if it's not too much. I've never used the "Currency" type, honestly.
I'm with #GregGalloway. In our cube-script it is implemented like this:
Scope
([Dim-Currency].[Currency Code].&[EUR]);
//EUR
FORMAT_STRING(This) = '€ #,##0.00';
End Scope;
Scope
([Dim-Currency].[Currency Code].&[GBP]);
FORMAT_STRING(This) = '£ #,##0.00';
End Scope;
We render via Pyramid front-end.

PowerPivot - Dax Find Text in another Cell - Cannot get string value

I have what is simple data and I want to return the Home or Motor if a find search returns True.
For Example
Skills Type
I Home Sr
A Mot Pre
Type is my custom column
Starting with just returning True and it fails right here with
=FIND("Home",[Skills])
With
Calculation error in column 'Table1'[]: The search Text provided to
function 'FIND' could not be found in the given text.
Ultimately I want to use If Find is "Home" Return Home if "Motor" return Motor
Desired Output (please note there are other starting variations to the Skills so cannot use a fixed search point in text)
Skills Type
I Home Sr Home
A Mot Pre Motor
Use the following expression for Type column:
=
IF (
IFERROR ( SEARCH ( "Mot*", [Skills], 1, 0 ), 0 ),
"Motor",
IF ( IFERROR ( SEARCH ( "Hom*", [Skills], 1, 0 ), 0 ), "Home", "Nothing" )
)
It will generate Home or Motor for any occurrence of Hom* and Mot*, note the * wildcard
It should produce:
The screenshot shows the table generated in Power BI, but this solution works in PowerPivot too, I don't have access to PowerPivot in this moment.
Note if any occurrence is not found it will put "Nothing" in your
Type column so you can replace "Nothing" by the string you want to
appear in that case.
SEARCH function documentation can be read here.
Let me know if this helps.

Crystal Reports 8.5 showing multi-values from parameters on report footer

In Crystal Reports 8.5 when I have setup a parameter for multi-value the user enters 90654-90658A. Normally I would use Join() but being that this is not just text but numeric I have tried a few things but with no results.
Local NumberVar i;
Local NumberVar j;
Local StringVar param_values;
if 0 in {?CPT} then
"CPT #s: All CPTs"
else
(
for i := 1 to UBound ({?CPT}) do
for j := Minimum ({?CPT}[ i ]) to Maximum ({?CPT}[ i ]) do
param_values := param_values + "," + CStr (j, "#");
"CPT #s: " + Mid (param_values, 2)
)
This works fine for 90654-90658 but when the user selects 90654-90658A it fails.
Also the selection criteria will not pass to SQL in the query sent to SQL with the correct where clause. Meaning there is not indication that I am even asking for a where. It should show in the select for sql a where table.data >= '90654' and table.data <= '90658A'
I am lost as to where I am going wrong with this. Any help would be great this is my first time seeking an answer on this site but I have not received any help on this request.
Thanks
I tried a similar query with the Xtreme.mdb database, referencing the Customer table. I created a string, range parameter that accepted multiple values (i.e. multiple ranges).
When I supplied it with two ranges, the follow query was generated:
SELECT `Customer`.`Postal Code`
FROM `Customer` `Customer`
WHERE (
(`Customer`.`Postal Code`>='04000' AND `Customer`.`Postal Code`<='04999') OR
(`Customer`.`Postal Code`>='55000' AND `Customer`.`Postal Code`<='55999')
)
As you can see, Crystal Reports will build the necessary BETWEEN or >= <= statements.
In you situation, try:
( "0" IN {?CPT} OR {TABLE.FIELD} IN {?CPT} )
You could adapt your formula field to display the values of the parameter, if you want.
I do appreciate everyones input but I was able to work through the problem. For the record selection I put in the following. {TABLE.FIELD} in CStr({#MinCPT}) to CStr({#MaxCPT}). This pulled the range after I created two formulas. One MinCPT and the other MaxCPT. Here is the formula. Left (ToText (Minimum ({?CPT})),2 ) & Mid (ToText (Minimum ({?CPT})),4 ,3 ) and the same for Max. The report works fine now.
Thanks Again.