Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hello, i am looking to calculate the total volume by each date for the Max date of receipt only:
example below.
Solved! Go to Solution.
Hi @NewbieJono
Please try this:
Measure1 =
VAR MaxDate =
CALCULATE ( MAX ( 'Table'[Receipt date] ), ALL ( 'Table'[Receipt date] ) )
RETURN
SUMX (
VALUES ( 'Table'[Date] ),
CALCULATE (
SUM ( 'Table'[Randvalues] ),
FILTER ( 'Table', 'Table'[Receipt date] = MaxDate )
)
)
First you Identify the Max DateOfReceipt with below Dax:
MaxDateOfReceipt = MAX('Table'[DateOfReceipt])
Then to Calculate Total Volume for Each Date (filtered by Max DateOfReceipt):
TotalVolumeForMaxDateOfReceipt =
CALCULATE(
SUM('Table'[Volume]),
'Table'[DateOfReceipt] = [MaxDateOfReceipt]
)
his will give you the result similar to the example in your screenshot, where it shows total volumes only for the entries with the maximum DateOfReceipt. Let me know if you need further customization!
Hi @NewbieJono
Please try this:
Measure1 =
VAR MaxDate =
CALCULATE ( MAX ( 'Table'[Receipt date] ), ALL ( 'Table'[Receipt date] ) )
RETURN
SUMX (
VALUES ( 'Table'[Date] ),
CALCULATE (
SUM ( 'Table'[Randvalues] ),
FILTER ( 'Table', 'Table'[Receipt date] = MaxDate )
)
)
Hi @NewbieJono Try this:
TotalVolume=
VAR MaxDateOfReceipt =
CALCULATE(
MAX('Table'[DateOfReceipt]),
ALLEXCEPT('Table', 'Table'[Date])
)
RETURN
CALCULATE(
SUM('Table'[Volume]),
'Table'[DateOfReceipt] = MaxDateOfReceipt
)
Output:
Hope this helps!!
If this solved your problem, please accept it as a solution and a kudos!!
Best Regards,
Shahariar Hafiz
hi @NewbieJono ,
Try to plot a visual with date column and a measure like:
measure =
VAR _maxdatereceipt=MAX(data[DateofReceipt])
VAR _result=
SUMX(
FILTER(
data,
data[DateofReceipt] = _maxdatereceipt
),
data[volumn]
)
RETURN _result
Total Volume for Max Receipt Date = //try this one
VAR MaxReceiptDate = MAX('TableName'[ReceiptDate])
RETURN
CALCULATE(
SUM('TableName'[Volume]),
'TableName'[ReceiptDate] = MaxReceiptDate
)
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 63 | |
| 48 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 118 | |
| 117 | |
| 38 | |
| 36 | |
| 27 |