NDVI trend analysis - libgee

I am new to gee currently I am doing trend analysis for a plantation site, since I am using a sentinel dataset from 2019 onwards, the issue I am having is while generating the mean ndvi for the entire collection in var monthlymean1 it is not taking the NDVI band in consideration and also I want the calculate the SAVI index, however, there is some syntax error in a code
https://code.earthengine.google.com/d5a59b4f7215209905b8a90122402799

Related

How to download Power BI dataset without publishing to web

I'm using a calculated column that is an average. The problem is, the average is above the range of possible values, which should be impossible. I made a calculated column that calculates the average star rating (out of a range of 1-5) and the value on a visual is coming up as 6, which shouldn't be possible, even if all the values were 5 stars, which it isn't. So there must be an outlier causing the average to be above the range of possible values, but it isn't in the original data source which Power BI pulls from. The original data source shows me a value of 4.1 as an average, which is within the expected range. But Power BI's dataset has introduced an outlier or (data is missing) that caused the average to become a 6.
I can elaborate on the dax below, but what I want to try to do is pull the dataset down from power bi to figure out why it's calculating its average that way. Looking at the source data, the average is 4.1 and there are no outliers in the source data. So, it's not the source data that's the problem. Basically, I want to find the outlier that's causing the average rating to differ in Power BI.
Avg Rating = IF(SUM(data[Total Reviews]) = 0, BLANK(), SUM(data[Monthly Stars])/SUM(data[Total Reviews]))
Here's a screencap that shows the two
relevant columns
Notice that I had to manually calculate (aka eyeball the columns and type into a calculator then calculate manually) these two columns, which came out to ~4.6. I'm trying to download this dataset to explore it in further detail without having to eyeball the dataset, as the source doesn't show this discrepancy.
To get to the data you have a number of options.
Create a new report in Power BI Desktop, and then use the connect to PBI Dataset option to access that data, in for example, a table. You can create your own report based on the dataset in the service as well.
Access that data via Analyze in Excel, which should allow you to access the data in a pivot table using Excel
Use the Export data from the visual option, using this you can download 30,000 rows into a csv, or 150,000 in to xlsx formats
Please note, that these options may not be available to you if you do not have the right permissions in the workspace, or options have been turned off in the Power BI Admin tenancy settings.

Power BI - Conditional Formatting in a Table Visual that has only one value

I'm creating a report in Power BI that shows performance for many measurements across a few different levels of granularity.
The performance is being aggregated into a 100% Stacked Bar Chart visual that displays the percentage of measurements in each of the three buckets "Above, Below, or At Target"
Aggregation Buckets Example
From there, I need to apply an additional level of logic that has some hard-coded thresholds to determine if the bar is "Great, Good, Okay, or Bad". For example: "If you have less that 20% below target (red), and 50% above target (green), you're doing great!" Then I have to put that text in a tool tip so that it pops up when they hover over the bar visual.
This is all working fine, and until the "Percentage of measures Below Target" DAX measure everything is being done on the SQL side.
The issue is at the tool tip step. They don't just want the "great!" value, they want the background for Great/Good/Okay/Bad to show as Blue/Green/White/Red.
I figured this would be easily done with a table visual and conditional formatting based on the value of a measure, but there's a quirk with how these three things interact when the table only has a one row of data. When there's only one row with only a measure, the table considers it aggregated, which
prevents the conditional formatting from taking effect. However, when there are multiple rows, or a non-measure value is added and de-aggregated, the conditional formatting works fine (this is a picture of the whole table, the extra column only has one value) The issue here is that the meaningless column is bad for presentation.
I'm learning Power BI/DAX as I go, so any help understanding the issue or how I can work around it would be appreciated.

Real time Bubble chart with Power Bi

I need to create a bubble chart with real time data. Bubble should move according to the changes in the data. I tried using API streaming data set. But Real time data support only few chart types as per the image below. Is there any workaround to achieve my requirement?
No at the moment only those visuals are supported for real time as they are dash board objects, however coming soon is refresh in Power BI Desktop, that will allow you to set a refresh on a report. Microsoft demo'ed it to show the report reading telemetry from a game. This may meet your requirement, for a 'realtime' data or at least low level latency

I am looking to plot a Line Chart (of Temperature vs Timestamp) in Google Data Studio

I am working on Google Cloud Platform and I am using the IoT related services available there. But, to plot a line chart of temperature vs ts (timestamp) in Google Data studio, with the data from Google Cloud BigQuery, I am facing the following issue:
My data:
What I wanted to plot: (It's done in Google excel sheets):
What I am getting:
Basically, in Datastudio I am able to plot, only the average of all data points available. I am not able to plot with respect to "minute axis", other than for a day-wise average plot. Please help me fix this
Thanks in advance
this is what i did, it is a workaround but it works in my case
copy timestamp and format it as hh, rename it hr
make another copy of timestamp and format it as mm, rename it as minute
add new calculated field and use this formula
CAST(CONCAT(datetime,hr,minute) AS NUMBER)
edit : more context
data studio support only YYYMMDDHH , the lowest level of details is day-hour, if you want to show day- hour-minute, you need to create a new calculated field, it has to be string or number ( I prefer number, as I want to do some calculation on the date).
all I am doing is creating a number that look like this 201908121400, and use it in my chart
edit : 22-Aug-2019, DS support it now, not need for a workaround
https://support.google.com/datastudio/answer/6311467?utm_source=in-product&utm_medium=feature-panel&utm_campaign=whats-new

How to build a matrix, similar to the table from Google analytics

In PowerBI I'd like to build Non-standard matrix very similar to the report in Google Analytics.
What do I have now:
I want to change my subtotal to measure, which is calculated as the difference in percentage of the two values
What I want to get:
In Power BI, there is no way to override the subtotals of a matrix with a calculation. Part of the challenge is that you know there are only two date ranges, but as far as Power BI is concerned, there could be any number of date ranges.
It's difficult to tell from your question exactly what input you have and what output you're looking for. Further, the numbers in your screenshots are obscured. However, one consideration would be to solve the problem using measures (i.e. a measure representing the first date range, a measure representing the 2nd date range, and then a measure calculating the difference between them). You may need to change the layout of your visual a little to make this work and the specific design would depend on how static your date ranges are.