i have 2 sheets:
Sheet 1:
Sheet 1
Sheet 2:
Sheet 2
I want to create a formular that is able to select only the relevant information from sheet 1 as soon as a new entry (Starting with "New Meter ID) is done and append these new relevant information to sheet 2. Sheet 2 Shows how it should look like.
Here is my pseudocode logic:
IF there is a new Value in "New Meter ID":
Select "Old Meter ID", "Building ID", "Address", "active", "p_Name", "POD ID" and put it
into sheet 2.
Anybody has an idea?
UPDTAE
Here is current sheet. My Problem with the filter function is, that the filtered data doesn't start at the beginning of the sheet. In a sheet with 1000 + rows, this will lead to many empty rows between the filtered data.
See Picture 3
Picture 3
try:
=FILTER(Sheet1!B2:I; Sheet1!B2:B<>"")
update:
=FILTER({Sheet1!B2:C, Sheet1!E2:E, Sheet1!G2:I}, Sheet1!B2:B<>"")
or:
=FILTER({Sheet1!B2:C\ Sheet1!E2:E\ Sheet1!G2:I}; Sheet1!B2:B<>"")
Related
I'm trying to use Google's monthly budget template and alter it so I can get a full view of the year. I have tabs Jan-Dec made but I can't figure out how to add them to the below formula. When I try, it tells me that the IF can only use 3. The areas Expenses and Income in the screenshot should total up the Amounts (column C) with their respective category (Column E).
The same would be said for income using Columns H and J.
=if(isblank($B36), "", sumif(January!$E:$E,$B36,January!$C:$C))
Here is the link to my sheet https://docs.google.com/spreadsheets/d/1MTL3xdN-0W4vS7e_yO1C4qkFAxlsxhx3SLXyml78qOc/edit?usp=sharing
delete E28:E41 and try in E28:
=BYROW(B28:B41, LAMBDA(b, IF(b="",,
IFERROR(QUERY({January!C:E; February!C:E; March!C:E;
April!C:E; May!C:E; June!C:E; July!C:E; August!C:E;
September!C:E; October!C:E; November!C:E; December!C:E},
"select sum(Col1) where Col3 = '"&b&"' label sum(Col1)''", ), 0))))
Update:
In order to make it cover the whole range of Categories with the same principle of having the flexibility of a list of Sheets' Names, you can use this formula:
=INDEX(IF(ISBLANK(B28:B41),"",REDUCE(,A28:A,LAMBDA(a,sh,
a+SUMIF(INDIRECT(sh&"!$E:$E"),B28:B41,INDIRECT(sh&"!$C:$C"))))))
I've set it in your sheet too in a new column to the right
If you stablish a list of sheets' names in a range, you can use this formula:
=if(isblank($B36),"",REDUCE(,A2:A,LAMBDA(a,sh,
a+SUMIF(INDIRECT(sh&"!$E:$E"),$B36,INDIRECT(sh&"!$C:$C")))))
I have one thing to solve.I want to add new column as "Complete or Not" deponding on Action Column.If one date have sign_in and sign_out,data in new column is "Complete" for that date.
Pls help me
enter image description here
I am trying to change the value of a single cell in power bi. When I go into the "data" view then right click and then go to "edit query" I have the option for "replace values". This works like a find and replace, the issue I am having is that if there are multiple cells with the same values they will all get changed. How can I just edit a single cell??
Unfortunately it is not as easy as just editing the cell. If you do not have an index/id column in your table then add one (there is a button on the toolbar to do this).
Then create a new custom column in M (PowerQuery / the data prep language of PowerBI), along the lines of:
NewColumn = IF ([Index] = "Index Number" and [YourColumn] = "<your value>")
THEN "The new text"
ELSE [YourOriginalColumn]
Rename or remove the original column and rename NewColumn to the original column name.
I'm using Power BI to build a bar chart to show sales split by a parameter which the user can select. I'm trying to find a method that lets the user toggle which parameter he wants the graph to be split by. For example, I have Column A - "Fruits" which is "Apples, Oranges, Mangoes" and Column B - "City" which is "New York, Chicago, Los Angeles". Using this, I create a bar graph which shows sales quantity, and split it by column A (Fruits), so that it shows sales of Apples, Oranges and Mangoes.
I want to create a drop-down filter/parameter which allows me to toggle the view between "Fruits / City" so that the bar graph shows the split by either Fruits or City based on what is selected in that drop-down. I know there is a very easy way to do this in Tableau by using the "Parameter" option, but I cannot find a way to do this in Power BI. Does anyone know if there is a way to do it in Power BI?
Thanks for any help!
You can add both Column A and Column B to the Axis of your bar-chart (or any chart). By doing so you create a heirarchy and the visual shows on the right top the following:
The dubble arrow will bring you to the next level (Cities) in your case where are the split arrow brings you a level deeper, all fruits in each city.
Now by adding a slicer you can even create a dropdown of cities for further filtering, the slider will interact with the bar.
I am trying to hide or mask such visuals which becomes blank after selection of filter(s). Following is an example.
I have table like -
Following is report -
Where, I have used Metric column as Slicer and the visuals are Metric wise. So, When I do select metric(s) , Then the visual(s) shows chart for the metric(s), but other shows as blank or nothing. So I want to show "No Preview" or "No data" for the blank visuals.
Like below -
Please suggest.
Thanks and Appreciation in advance !!
This is possible on cards and matrix only, and not on the bar and many other types of chart.
You will have to create a measure like the following:
Total Revenue =
VAR TotalRevenu = SUM(Table1[Revenue])
RETURN
IF(
ISBLANK(TotalRevenue),
"No Data",
TotalRevenue
)
As mentioned, this will work for cards and matrix values only.