Forum Discussion
Lowest Sale Date
Good!! Someone knows how to identify the lowest sale date in a year. I have a sales table and calendar. I need to know what was the lowest selling day during the year.
Thank you
Hi, Syndicate_Admin
If it's more than a year, you can try the following.
Measure = VAR _minsales = CALCULATE ( MIN ( 'Table'[Sales] ), ALLEXCEPT ( 'Date', 'Date'[Year] ) ) RETURN CALCULATE ( MAX ( 'Table'[Date] ), FILTER ( ALL ( 'Table' ), [Sales] = _minsales ), FILTER ( ALL ( 'Date' ), [Year] = SELECTEDVALUE ( 'Date'[Year] ) ) )Result:
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 Replies
- FreemanZ
Super User
Supposing you have two columns in sales table: date and amt.try to create a measure like:LowestDay =VAR _lowestsales =CALCULATE(MIN(TableName[amt]), ALL(TableName))RETURNMINX(FILTER(TableName,TableName[amt] = _lowestsales),TableName[Date]) - Thennarasu_R
Responsive Resident
Hi
Syndicate_Admin
Do this Measure . you will get your output
First thing Creare one Min Sales
1.Min Sales=min (Sales Colunm)
and then use this formula
Thanks ,
Thennarasu - v-zhangti
Community Support
Hi, Syndicate_Admin
If it's more than a year, you can try the following.
Measure = VAR _minsales = CALCULATE ( MIN ( 'Table'[Sales] ), ALLEXCEPT ( 'Date', 'Date'[Year] ) ) RETURN CALCULATE ( MAX ( 'Table'[Date] ), FILTER ( ALL ( 'Table' ), [Sales] = _minsales ), FILTER ( ALL ( 'Date' ), [Year] = SELECTEDVALUE ( 'Date'[Year] ) ) )Result:
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Syndicate_Admin
Administrator
Thank you very much for the help.
Actually all the formulas worked.
I keep the last one, because by modifying I could also determine the day of greatest sale. Thank you