In Finicast, I am unable to apply my formula on a group of cells in my pivot table - pivot-table

I was trying to build a periods model using Finicast. I am stuck at this step where I apply a formula to the cells with dimension 'Fcst' and 'Revenue' in my pivot table.
Based on my understanding, if I select Revenue cell for month of Jul22, the formula THIS("idx") should have been applied and the cell should contain the value 7 instead of 0. I have other formulas applied to this cell. But I have my rev_fcst formula top precedence to apply on this cell. Irrespective of which order I apply the formulas in, in this selection, the value for months & Revenue cells remain 0.
What am I missing here?
I have added images of my formula bar, pivot table, and dimensions
The formula bar
The rows highlighted by selecting Fcst and Revenue
periods table for reference

Looking at the image you posted, you have a set of "hardcoded" 0's for Jul22, Aug22 and Sep22. Click on those cells and press the Delete key to remove the hardcodes, and then the underlying formula will show-up again.

Related

How do I sum values if both column, row and cell value match conditions?

I have two sheets: flight control and total hours control. Link to sheets.
Flight Control:
Total Hours:
What I want: On Total Hours, Sum the Flight Time if:
Column Name(L.D.1) matches row on Line; row Pilot matches row Pilot; cell has a value of 1.
I'm using this for cell C2, and it works:
=SUMIFS('Flight Time'!B:B;'Flight Time'!A:A;B2;'Flight Time'!C:C;"1")
And it works, giving me this:
However, this isn't very practical. I have to redo the formula every time a new pilot is introduced. And if I move columns around, it stops working.
What I need: To base my conditions on a text search. Something like:
If column name in {Flight Time!C:F} matches string on {row in col Line}, and Pilot = Pilot, and cell value = 1, SUM
In other words, I need to scale this. The final product will have dozens of pilots and L.D.s, so I need to be able to move things around.
My answer is similar to player0's but it anticipates a Flight Time tab that expands infinitely sideways as well as down.
You would start a new tab and place this formula in cell A1.
=ARRAYFORMULA(QUERY(SPLIT(TRANSPOSE(TRIM(SPLIT(QUERY(TRANSPOSE(QUERY('Flight Time'!C1:1&"|"&'Flight Time'!A2:A&"|"&OFFSET('Flight Time'!C2;;;ROWS('Flight Time'!C2:C);COLUMNS('Flight Time'!C2:2))*'Flight Time'!B2:B&CHAR(10);;9^99));;9^99);CHAR(10);0;0)));"|";0;0);"select Col1,Col2, SUM(Col3) where Col3>0 group by Col1,Col2 label Col1'Line',Col2'Pilot',SUM(Col3)'Total Hours'"))
Sometimes in complicated formulas like this, it can be difficult to translate to your real sheet if you haven't placed the sample data in exactly the same layout on the sample as it is on your real sheet. If that is the case here, change the layout of the sample so that it better matches your real data, and I can try to update the formula.
use:
=ARRAYFORMULA(SPLIT(
TRANSPOSE(QUERY(TRANSPOSE(QUERY(SPLIT(TRANSPOSE(SPLIT(QUERY(TRANSPOSE(QUERY(
IF(C2:F="",,"♠"&C1:F1&"♦"&A2:A&"♣♥"&B2:B),,999^99)),,999^99), "♠")), "♥"),
"select Col1,sum(Col2) group by Col1 label sum(Col2)''")),,999^99)), "♦♣"))

How have a row change color from data in a cell

I have a Google Sheet that I am making and I am having trouble with a format. I have columns from A-Q and cells from 4-100, what I want to be able to do is the last column (Q) is for invoice #'s so I want to be able to when someone enters an invoice number the whole row changes color, is that possible?
You need to create a conditional format with the custom formula
=NOT(ISBLANK($Q2))
In the "Format" menu, select "Conditional formatting...", then apply the pictured settings.

Excel average based on row and column values

I would like to calculate the average (and other summary statistics) of algae counts based on the algal group (Column B) and the month (collection dates are in row 1). The first few columns and rows look like this:
row B---------------------C-------------------D
Algal Group -------6/5/2000 ----------7/5/2000-----etc.
Cyanobacteria-------5---------------------60
Bacillariophyta-------2---------------------40
Xanthophyta-------[blank]---------------30
I've tried using the standard AVERAGEIFS combined with the MONTH forumla, but I think the row of dates is throwing it off. I've also tried inserting a new row below the dates (i.e., row 2) with the Month of the collection date in row 1, and referring to that column in an AVERAGEIFS. That didn't work either. I've also tried entering it as an array formula. The dates are C1:DW1, Algae Groups are B2:B246. Any thoughts are much appreciated!
Use an array formula like this:
=AVERAGE(IF((MONTH($C$1:$E$1)=H8)*($B$2:$B$4=H9)*($C$2:$E$4<>""),$C$2:$E$4))
Being an Array it needs to be confirmed with Ctrl-Shift-Enter. If done correctly Excel will put {} around the formula.

Add each row in a single cell

I have a requirement in ssrs report for display data like this.
I have to show 2 two rows data in one row in ssrs as shown below. Row count is unknown.
Please check another example.
Max two cell in one row in ssrs. I have to do this dynamically because I don't have any fix count in my data base table. If my table contain 3 rows it will display like first example but it it has 6 rows then it will looks like 2nd example.
Any suggestion how I can achieve.
The only way I know to do this left-to-right, top-to-bottom flow style is to sort of hack it in with lists. To my knowledge, the built-in controls do not directly support it.
First add a couple of columns to the query output to assign row and column numbers to each data row. (Change the order by clause as appropriate)
ceiling(row_number() over (order by AddressField) / 2.0) RowNumber
(row_number() over (order by AddressField) + 1) % 2 + 1 ColumnNumber
Now add a list to the report. Group by the RowNumber field. Within that list, add two more lists side by side. They will use the same dataset as the parent list. These will represent the cells. The left 'cell' will be a list with a filter ColumnNumber = 1. The right 'cell' will be a list with filter ColumnNumber = 2.
Now add textboxes within each 'cell' to contain the address data and format them as you desire.

SSRS Count Rows of Previous Group (Table in Matrix)

Using the sample below, I am looking for a way how to count the number of rows in the table in the previous group. My report is setup using a Matrix and a table ("Tablix3") in the data region of the matrix.
The column groupings are called "DayOfTheWeek" and "AMPM".
In the area with the blue box around it, I need the PM group to count the number of rows in "Tablix3" for the AM group on that day, which is 2. When the value is greater than 1 I will use expressions to alter the background colour accordingly as the bottom right pink background shouldn't be there.
I am using SSRS 2008.
Unfortunately, no. You have to do it in the query.

Resources