Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
hi,
on a table I have Date Column and then a value column and also a column with flag
on a table chart, I want to have Date, Min Date, Sum values, Value on Min Date.
I used
Sum(if(Flag = 1 and [Date]= Min(Total <[Date]> [Date]),[Value])) to show value of the minimum date but getting null.
Anyone can help.
Thanks
I finally got it to work using the following in set analysis
[Date]= {'$(=Min({<Flag= {'1'}, Name= {'AB'}>}Total <[Date]> [Date]))'}
Try
=Sum( {<Flag = {1}, [Date] = {'$(=Date(Min({<Flag = 1>}[Date])))'}>} Value)
Thanks Stefan. it still shows null values
Are your dates correctly interpreted as such?
Could you upload a small sample?
When using the following formula in a column
if(Flag = 1 , Min(Total <[Date]> [Date]))
I get the right date and the format in MM/DD/YYYY
Thanks again
What is the chart context (dimensions used)?
The Date Column and it looks like this
date(if(Flag = 1 , [Date]),'MMM YY')
Still struggling with it.. Anyone can help.
assuming you are using this in a chart and the chart is ordered by Date, can you try this.
Sum(if(Flag = 1 and [Date]= FieldValue('Date',1), Value)
it gives null value