Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
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 @AnupaJ,
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.
➤ Email: sahir@sahirmaharaj.com
➤ Lets connect on LinkedIn: Join my network of 12K+ professionals
➤ Want me to build your Power BI solution? Lets chat about how I can assist!
➤ Join my Medium community of 30k readers! Sharing my knowledge about data science and artificial intelligence
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.