Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.