Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I want to create a measure to find the sum of the below between the latest date and the earliest date.
I have a column for the date in the table
measure= qty * price
Hello @Anonymous,
You can use the following DAX formula:
TotalAmount =
CALCULATE(
SUMX(
TableName,
TableName[qty] * TableName[price]
),
FILTER(
TableName,
TableName[date] = MAX(TableName[date])
|| TableName[date] = MIN(TableName[date])
)
)
Should you require further details or assistance please do not hesitate to reach out to me.