Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I have a measure that is calculating the sum of annual volume by the last stage in the process:
Annual Volume (Latest) =
CALCULATE(sum(Products[AnnualVolume]), FILTER(Processes, Processes[Ordering] = MAX(Processes[Ordering])))
I'm getting the last record based on the index column on the 'processes' table for the order in which the processes go through.
This is working fine, so example data looks like this:
Now, I want the grand total of the processes, so for the above I'd expect a value of 120898123. I'm then going to group this by customer, item, etc etc etc.
Can someone help how I achieve this? I expect another measure, if you could advise it would really be appreciated.
Many thanks,
Dayna
Solved! Go to Solution.
Try this measure:
Annual Volume Total (Latest) =
SUMX ( VALUES ( Processes[Name] ), [Annual Volume (Latest)] )
The column in VALUES should be the column in your visual. If you need to add multiple columns to your visual, use SUMMARIZE (instead of VALUES) to create unique combinations of the columns in your visual.
I recommend using a column filter instead of a table filter in your original measure. In many cases they return the same result, but it's safer to filter only what you need:
Annual Volume (Latest) =
CALCULATE (
SUM ( Products[AnnualVolume] ),
Processes[Ordering] = MAX ( Processes[Ordering] )
)
Proud to be a Super User!
Try this measure:
Annual Volume Total (Latest) =
SUMX ( VALUES ( Processes[Name] ), [Annual Volume (Latest)] )
The column in VALUES should be the column in your visual. If you need to add multiple columns to your visual, use SUMMARIZE (instead of VALUES) to create unique combinations of the columns in your visual.
I recommend using a column filter instead of a table filter in your original measure. In many cases they return the same result, but it's safer to filter only what you need:
Annual Volume (Latest) =
CALCULATE (
SUM ( Products[AnnualVolume] ),
Processes[Ordering] = MAX ( Processes[Ordering] )
)
Proud to be a Super User!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
62 | |
62 | |
52 | |
39 | |
24 |
User | Count |
---|---|
85 | |
57 | |
45 | |
43 | |
38 |