Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
is there any method to calculate the total volume for the whole month based on the last date in a table
e.g
if the data for april went up to 27th April. i would like to calculate the volume for all dates in april.
Solved! Go to Solution.
Hi @NewbieJono
You can use something like :
the pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Hi @NewbieJono
You can use something like :
the pbix is attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Hello @NewbieJono ,
Please try the following DAX measure:
TotalVolumeForMonth =
VAR _LastDateInMonth = MAX('Table'[Date]) // Assuming 'Date' is your date column and it is properly formatted as a date.
VAR _StartOfMonth = STARTOFMONTH('Table'[Date])
VAR _Result =
CALCULATE(
SUM('Table'[Volume]),
'Table'[Date] >= _StartOfMonth && 'Table'[Date] <= _LastDateInMonth
)
RETURN
_Result
If it satisfies your needs, please do not forget to mark my reply as the solution. Cheers!
User | Count |
---|---|
78 | |
75 | |
62 | |
60 | |
47 |
User | Count |
---|---|
109 | |
95 | |
86 | |
79 | |
61 |