Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
I have a dashboard in which I want to determine the difference from a high water mark of running totals form a set of values.
I have three measures:
1. Running Total, this calculates the running total of the values in date order.
Running Total =
CALCULATE (
SUM(Data[Value]),
FILTER ( ALLSELECTED(Data), Data[Index] <= MAX ( Data[Index] ) )
)
2. High Water Mark, this calculates the highest value the Running Total has reached so far.
High Water Mark =
MAXX (
ADDCOLUMNS (
FILTER ( ALLSELECTED( 'Data' ), Data[Index] <= MAX ( Data[Index] ) ),
"Running Total", [Running Total]
),
[Running Total]
)
3. Difference from High Water Mark, this calculates the difference between the High Water Mark and the Running Total.
Difference from High Water Mark = [Running Total] - [High Water Mark]
I want to be able to capture the minimum value of the Difference from High Water Mark which would be -226 but I am unable to do so as the MIN() function cannot be used against a measure.
Can anyone help me on how I can obtain this minimum value?
MY PBIX file can be downloaded from this wetransfer link...PBIX file
Any help you can offer is appreciated.
Kind regards,
Neil
Solved! Go to Solution.
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
@Burtoninlondon
You can follow the below syntax
You can find the file here
Please find the other formula where I calculated the min value till the current row.
Need Power BI consultation, hire me on UpWork .
If the post helps please give a thumbs up
If it solves your issue, please accept it as the solution to help the other members find it more quickly.
Tharun
@tharunkumarRTK, thanks for your response, it was very helpful.
I'm going to mark the other response from @ThxAlot as the solution as it needed less measures in my model.
Neil
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
60 | |
58 | |
54 | |
36 | |
33 |
User | Count |
---|---|
79 | |
66 | |
45 | |
44 | |
42 |