Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

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

1 ACCEPTED SOLUTION
v-zhangti
Community Support
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] ) )
    )

vzhangti_0-1672296449420.png

Result:

vzhangti_1-1672296475279.png

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.

View solution in original post

4 REPLIES 4
Syndicate_Admin
Administrator
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

Nelson_PJC_2022_0-1672336416966.png

v-zhangti
Community Support
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] ) )
    )

vzhangti_0-1672296449420.png

Result:

vzhangti_1-1672296475279.png

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.

Thennarasu_R
Responsive Resident
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

Thennarasu_R_0-1672245001032.png


Thanks ,
Thennarasu



FreemanZ
Super User
Super User

hi @Syndicate_Admin 

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))
RETURN
MINX(
    FILTER(
        TableName,
        TableName[amt] = _lowestsales
    ),
    TableName[Date]
)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.