Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
Please help on this one :-
Data
Year, Data, AVG(Data)
2017 50 1
2018 20. 2
2019 30. 3
2020 5. 4
My requirement is to calculate the min of AVG(Data)
So that I should get min(AVG (Data) = 1 as 1 is the minimum value in the above table
And we have to apply this only for latest 3 years . As of now I have the data for till 2020
I have to show it in bar graph with dimension as Year . How can I achieve this ?
I think you confused us with min(Avg(Data)). Looks like you already have average calculated so you need minimum of that for particular year.
Try below with dimension Year and ProjectCode and below expression
=if(sum([avg hourly Rate])=sum(total <Year>aggr(min([avg hourly Rate]),Year)),sum({<Year ={">=$(=max(Year)-3)"}>}[avg hourly Rate]),0)
try below expression
=min({<Year={">=$(=max(Year)-3)"}>}Avg_Data)
@Kushal_Chawda hello kush ,firstly many thanks for your instant response and I am struggling due to tight deadline.
As per your solution,
In my data I am getting only 2 feilds from backend Year & Data
AVG (Data) I have valuated in front measure
I am not sure if I can mass this front end measure in the expression. Please confirm
@Aspiring_Developer wrote:@Kushal_Chawda hello kush ,firstly many thanks for your instant response and I am struggling due to tight deadline.
As per your solution,
In my data I am getting only 2 feilds from backend Year & Data
AVG (Data) I have valuated in front measure
I am not sure if I can mass this front end measure in the expression. Please confirm
Desired output
Year Data
2017. 50
2018 20
2019 30
2020 5
Desired output
To get measure column
Min(AVG(Data))
Can we use the calculated measure column AVG(Data) to get the other column measure Main(AVG ( Data)) returning minimum values
What do you mean by this (Min(Avg(Data))?
may be you are looking for this
=sum({<Year={">=$(=max(Year)-3)"}>}Data)
Avg ( Data ) will give us the average values for each year. I want to show the minimum values for these AVG(Data) in a chart like below
Year AVG( data) minimum of AVG(Data)
2017 20. 20
2018 30 -
So the column should 20 as it is the small average values in the years
try below with Year as dimension and below expression
if(avg(Data)= min(total aggr(avg(Data),Year)),Avg(Data),0)
Go to chart properties->add-on-> uncheck include zero values
@ Kush
if(avg(Data)= min(total aggr(avg(Data),Year)),Avg(Data),0)
I want to show it for last 3 years . If i will take Year, it will give me the data for all Years.