HTML Reports not visible in Jenkins Dashboard [closed] - jenkins-plugins

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
In my Jenkins, I have installed HTML Publisher.
After adding this I have restarted Jenkins and when I am checking Pipeline(project)
Html reports is not visible on Dashboard.
This is my dashboard view
NOTE
I have tried the same set up in the different project and there it was working perfectly.

make a list of indexes and the ranges
There can be two options to use the range
Apply some formula on that range
Display the values in that range
I have inserted examples for both as below
In E1 you can enter 1 ,2 or 3 (any value from the index and range created list)
Formula in F1 is =SUM(INDIRECT(VLOOKUP(E1,B1:C4,2,0)))
this will give a sum of values in range against the index
Entry of 2nd example is in A9, you can enter any index in A9
Formula in B9 is =INDIRECT(VLOOKUP(A9,B1:C4,2,0))
The trick here is that you have to start selecting the cells where you want to display the range from B9 and go till E10 (or what ever cell is best for you)
Now press F2 and press Ctrl+Shift+Enter

Lets assume you make your selections in cell H1 and that all the ranges are 6 rows by 5 columns. you could define your range using the following formula:
=INDEX(B:B,MATCH($H$1,A:A,0):INDEX(F:F,MATCH($H$1,A:A,0)+5)
IF you want the ID number to be part of the range, change B:B to A:A
The above formula cannot be used on its own. However since it defines a range, you can then use it in other formulas that need to work with a range. IE you could nest it in the AVERAGE function as follows:
=AVERAGE(INDEX(B:B,MATCH($H$1,A:A,0):INDEX(F:F,MATCH($H$1,A:A,0)+5))
or use it for the look up range in VLOOKUP
=VLOOKUP("Timmy",INDEX(B:B,MATCH($H$1,A:A,0):INDEX(F:F,MATCH($H$1,A:A,0)+5),3,0)

Related

Percentile with multiple conditions in google sheets [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 months ago.
Improve this question
I have a sheet called "main" with 4 columns like this :
I want to make a percentile of column N, with condition of column A, C, and J
I tried with function PERCENTILE(IF((x)*(y)*(z),aa),0.5) and works for
queue_name = "idecbi-prod",
grass_week = "2022-09-05",
and task_user = "di_scheduler",
Desired Answer :
it works just fine with these conditions,
But when I tried to use another condition such as "idecbi-dev" or "ad-hoc" or another grass_week, it become error like this
Whereas the only thing i change is only O4 to O5 and N4 to N5
The data seems fine and we have all the conditions as shown in the first picture (main sheet).
Is there anything that I miss ?
Here's dummy data that I've created for better understanding.
https://docs.google.com/spreadsheets/d/1ejhxVTayWjrUAZ6NE78AXx2pENvlhGDstMXwrDfqv_0/edit?usp=sharing
I'm trying to make cell D4 works as fine as D3
wrap it into ARRAYFORMULA:
=ArrayFormula(PERCENTILE(IF((main_week=A3)*(main_queue=C4)*(main_task_usage=B4),main_avg_exectime),0.5))

Create an array of the dates of the last X times something happened, including duplicates [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 months ago.
Improve this question
I'm a very advanced Excel user and have used dynamic arrays and complex lambdas to solve some pretty tough problems, but this one has me stumped. I have a column (or array) of invoice dates, that are non-unique. I have a corresponding column of the count of a specific widget sold on that invoice. It could be 0, 1, or multiples. And a given day could have 3 invoices with no widgets, 2 invoices with one widget, and 1 invoice with 4 widgets.
I am not trying to get the count, that's trivial. I need to create an array that is the dates of the last 6 widget sales, including duplicated dates. So if on 7/1/22 3x widgets were on one invoice, and and on 7/5 there were 2x on 1 invoice and 1x on a second invoice, my resulting array would have 3x 7/1 entries and 3x 7/5 entries. It's a list of the date that each of the last 6 widgets were sold.
I can get it to one single intermediate table, but I can't find a way to do it using a single formula and dynamic arrays. In this application, I can't resort to VBA, which would be easier.
Adding example source data:
Date
Ct
6/5
1
6/7
1
6/7
2
6/10
0
6/10
1
6/25
1
6/26
0
6/28
1
Example result: the last 6 items ordered were ordered on what date?
Rslt
6/7
6/7
6/7
6/10
6/25
6/28
With Invoice Date and Widget Sales in A1:A10 and B1:B10 respectively, and C1 containing your chosen value for X, e.g. 6:
=LET(ζ,A1:B10,ω,C1,ξ,SORT(ζ,1,-1),λ,XLOOKUP(SEQUENCE(ω),SCAN(0,INDEX(ξ,,2),LAMBDA(α,β,α+β)),INDEX(ξ,,1),,1),FILTER(λ,1-ISNA(λ)))
The final FILTER clause is included so that, if less than X sales are present, dates corresponding to the actual number of sales are returned.

Find row in 2 columns where IF AND is meet between these 2 cells in respective row [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I need a function that will check if column C has a cell with "2/1/2020" date and also column D has a cell with a specific word, let's say "Savinjska" (in my case) in the same row. And return the rows where these combinations in both columns are meet.
Further, these found rows are needed to collect 2 numbers from the E and F column and divide them (F/E).
I hope it is clear. I don't have much experience with Match, Index or Row functions...
You can check my spreadsheet here:
https://docs.google.com/spreadsheets/d/1N_quzKffRB5iDT1b2qZ0VCEycq5vYJ7uY48HXz5n6P4/edit?usp=sharing
use in row 2:
=ARRAYFORMULA(IF((C2:C=DATE(2020, 2, 1))*(D2:D="Savinjska"), F2:F/E2:E, ))
Enter the formula in a cell in row 2:
=if(and(C2=DATE(2020,2,1),D2="Savinjska"),F2/E2,"")
and: this enables two logical expressions to be evaluated
C2=DATE(2020,2,1): this compares the date in Cell C2 to the desired date
D2="Savinjska": Compares the value in cell D2 to the desired name
if the formularmula evaluates as TRUE, the it returns F2/E2

Spreadsheet application in C [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
i am looking to create a simple spreadsheet application where users are allowed to customize the rows and columns based on their input.
for example user inputs,
newSS 10 9
which means user wants to create a newSpreadSheet of 10 columns and 9 rows.
an empty spreadsheet should be created and displayed in the console window.
the catch here is that there will always be an extra row and column for which the user has entered as the extra rows and columns are for the headers.
so 10 columns and 9 rows will have 11 columns and 10 rows stored in a 3D array because the first index of every column and row are the headers. it should look something like this.
first row would show: A B C D E F G H I J
first column would show: 1 2 3 4 5 6 7 8 9
as their labels
the spaces in between are their paticular index say A1, A2, B4 etc.. which the user can then edit the values inside.
can anyone teach me how to get started? am a very new c programmer here. am facing some issues with the codes. am able to create a 2d array but i need to alter the first row and first column to print it as the header according to how many rows and columns the users wants. so if 5 columns it will be (A-E)
WORKSHEET *ws_new(int cols, int rows) {
//return NULL;
int r;
int c;
int n[rows][cols];
for (r=1;r<=rows;r++)
{
for(c=1;c<=cols;c++)
{
//printf("%d",cols);
n[r][c]=0;
printf("%d", n[r][c]);
}
printf("\n");
}
}
I am looking to make a simple spreadsheet application
Spreadsheets cannot be a simple application. They have two related components which are complex:
a nice GUI presenting a table of cells (you could also consider a terminal interface, using something like ncurses, but that won't be simpler than providing a simple GUI). If your program don't provide some tabular interface, don't call it a spreadsheet.
a lazy "functional" interpreter, running in each spreadsheet cell (or interpreting a 2D array of formulas); you have some scripting language involved, and your spreadsheet has conceptually some matrix of formulae.
You could look (for inspiration) into the source code of existing free software spreadsheets, e.g. Gnumeric
For the GUI part, use some existing GUI toolkit. Since you want to code that in C, consider GTK.
For the interpreter part, read first the Dragon Book (after having read SICP), something like Programming Languages Pragmatics and probably Lisp In Small Pieces. If you want to parse your own formula language, read more about parsing techniques, recursive descent parsing, and look into bison infix calc example.
You need at least several months, and perhaps several years, of work.
You might embed some existing interpreter (instead of designing and implementing your own one). Consider using Lua or Guile.
Your incomplete code is conceptually wrong: what a spreadsheet needs to have is some matrix of formulae, not just of numbers (like your n array). Each cell contains a formula (or a tagged union of formula and plain number), and you want to keep the AST of that formula. A cell apparently containing a number is a degenerate case of a formula reduced to a constant number.
This answer shows how to implement a numerical matrix as some abstract data type. It could inspire you to represent a spreadsheet as some matrix of formulae. Of course you need to also have a type for the AST of your formulae.

Optimize SUMIFS formula [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I basically have a super long formula that I need to shrink. So basically I have a pivot table that allows a manager to select two work locations or both and one to twelve months.
This is how the formula looks. Only thing that changes are cell I and J->K. Would I need to set this up in a array?
=SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$3,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$J$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$4,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$J$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$5,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$J$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$6,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$J$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$7,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$J$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$8,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$J$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$9,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$J$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$10,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$J$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$11,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$J$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$12,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$J$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$13,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$J$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$14,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$J$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$3,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$K$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$4,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$K$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$5,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$K$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$6,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$K$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$7,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$K$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$8,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$K$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$9,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$K$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$10,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$K$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$11,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$K$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$12,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$K$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$13,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$K$2)+SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$14,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$K$2)
This formula should give the same result
=SUMPRODUCT(SUMIFS('owssvr(1)'!C:C,'owssvr(1)'!$IR:$IR,$I$3:$I$14,'owssvr(1)'!$IQ:$IQ,'Summary KPI'!$J$2:$K$2))
Assuming you want to sum for all combinations then you can have at most one vertical and one horizontal range as criteria in SUMIFS (so $I$3:$I$14 and 'Summary KPI'!$J$2:$K$2 qualify as those).
SUMIFS then returns an array of 12x2 values (the same dimensions as your criteria) and SUMPRODUCT sums all those to get the correct result (used instead of SUM so that "array entry" is not required)

Resources