I am using Kibana KPI Visualization, and showing sum of values, but those values are in million and billions.
I checked Advanced Settings under which we can apply the number formatting but that will be applied throughout the space, I want to apply at specific KPI.
I got a link https://discuss.elastic.co/t/use-json-input-convert-bytes-to-gb/231330/2 using which I can divide the number, but I want the numeraljs format to be applied like 0.00a, so that it can format the number automatically.
{"script": " _value / 1000"}
this can give in thousands, but if this formatting can be done using numeraljs format it would be great.
Any help is much appreciated!
I'm new to Tableau. I am trying to make an inventory report which tells the user how much of certain product he/she should buy in advance.
Depending on the amount of days selected on the filter, the difference in days of the complete period should be calculated. For example: If the filtered dates are from 1/03/2021 to 09/03/2021, the result should be equal to 9. The formula I used is the following: date_difference = DATEDIFF("day",MIN(DATE([Fecha])), MAX(DATE([Fecha]))) + 1
The problem comes when I try to use the value given by such date filter. My next calculation should be:
calc = Quantity Inventory / (Units sold / date_difference). Both Quantity Inventory and Units sold are calculated fields in which I have no problem. However, instead of having a fixed value of 9, date_difference changes as shown in the image, giving me incorrect results for the desired calculation.
How can I make sure that the calculated field date_difference has the value of 9 on all rows?. Actually, if I add date_difference field by itself in a different Page it does show the proper value. The problem occurs when calculating calc and trying to add it to the table.
Note: Remember that the value of date_difference will change, depending on the range of time selected on the date filter
Thanks a lot in advance.
Step-1 Use this calculation for date_difference instead
DATEDIFF('day', {min(DATE([Fecha]))}, {max(DATE([Fecha]))}) +1
Step-2 Add Fecha filter to context, by right clicking it in filters shelf.
This will solve your problem. See the GIF
I am creating a confirmation letter using Bi Publisher with Word Add In.
I need a field to convert a varchar to number then multiply this by 75% and of course if the field is zero to equal zero.
For example my room_rate is the field and currently is 3,000.00 and I need to show the net amount which is always 75% because 25% is taxes so I need it to display 2250.
I have tried writing the below but it results in a '0'
I apologise for my lack of skills as I am just beginning.
Thanks in advance!!
If you have these XML fields per row:
<room_rate>3,000.00</room_rate>
<net_percent>75</net_percent>
You would want to use this for the field you want to calculate:
<?xdofx:to_number(room_rate) * (net_percent div 100)?>
You really should be sending the value as a number in the XML, and storing it in the database as a number for that matter.
I am trying to create an appropriate Format table property of a specific MS Access table in order to achieve the display style described below. For example purposes, let the table name be example and the field that I am trying to format be dollars
When example!dollars.Value is 567.98, I wish to display $0.567K. I also wish to display 1,000.42 as $1.000K.
In another table storing larger values, I use the Format property string $#,##0,\K; ($#,##0,"K)"[Red];"| < $1K |"; --, which successfully displays the amount in K dollars; however, any values less than $1K cannot be displayed. This is not acceptable due to the scale of the values in the example table.
The most intuitive solution is to use the string $0,000\K and specify the thousands separator as . instead of ,. However, I do not know how to do this.
Any advice will be greatly appreciated!
This works for me:
Kamount = Format(Amount/1000, "$0.000K")
So divide by 1000, then format as needed.
Use the Format property string $0\.000\K
I'm a beginner for QlikView. I learnt that by going to presentation tab and click on show partial sum box and subtotal box, I can get the partial sum and subtotal. But my task is to calculate the average which means (subtotal/no of record)/ (partial sum/no of record). I've been suggested to use set analysis to calculate too. I have somehow calculated the numerator part but unable to get denominator.
This is my numerator :
Let vNumerator = 'SUM({<ACTIVITY={num1,num2}>} BOX_COUNT)/Count (record1 & record2)';
Any help is much appreciated.
From this scrap data
load * inline [
A,B,C,D,E
1,21,a,b,z,x
2,22,b,b,z,x
3,23,a,a,x,z
4,24,b,b,x,z
5,25,b,a,x,x
6,21,a,b,z,x
7,22,b,b,z,x
8,23,a,a,x,z
9,24,b,b,x,z
10,25,b,a,x,x
11,21,a,b,z,x
12,22,b,b,z,x
13,23,a,a,x,z
14,24,b,b,x,z
15,25,b,a,x,x
16,21,a,b,z,x
17,22,b,b,z,x
18,23,a,a,x,z
19,24,b,b,x,z
20,25,b,a,x,x
];
Which of these tables is what you are looking for out of the data?
All of these by defining a third expression as a combination of the others rather than trying to force it into an automatic subtotal.
Or make a table that shows the answers you want and post a picture of it. Even in excel is fine.
Also please let me know if I'm a million miles off the track here.
If you want to sum over ACTIVITY you need to use the following syntax:
sum( TOTAL<ACTIVITY> _your_expression_with_Set_ananaysis_ )
/
count( TOTAL<ACTIVITY> record1 & record2 )