Calculate using the Latest Revision

mdrew9

Board Regular
Joined
Mar 4, 2006
Messages
118
Struggling with a DAX measure that is the base of many other measures.

I have a budget, which has multiple revisions. Its formula right now is calculate(sum(BudgetValue),Department<>Accounting,Group<>Finance)
This works fine, but since I have added a second revision the table now has both the Rev 0 budget values and the Rev 1 budget values.

calculate(sum(BudgetValue),Department<>Accounting,Group<>Finance,Max(Revision)) - This is what I wanted to do, doesn't work...

Thanks in advance.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Struggling with a DAX measure that is the base of many other measures.

I have a budget, which has multiple revisions. Its formula right now is calculate(sum(BudgetValue),Department<>Accounting,Group<>Finance)
This works fine, but since I have added a second revision the table now has both the Rev 0 budget values and the Rev 1 budget values.

calculate(sum(BudgetValue),Department<>Accounting,Group<>Finance,Max(Revision)) - This is what I wanted to do, doesn't work...

Thanks in advance.

CALCULATE( SUMX(SUMMARIZE( put some columns in here, add the MAX aggregate here), [name of the aggregate]), Department<>Accounting,Group<>Finance,Max(Revision) )

and that should do the trick. To know what columns to use we need to get a closer look at your data model but Revision should be one of them.

Best!
Miguel
 
Upvote 0
Thanks for the reply. I put in a work around where I did a simple sql query to my source data to get the max revision for each project, then related the two, compared the Rev in my source file and now filter on "Latest Rev". But I will try to see how this works. Thank you.
 
Upvote 0

Forum statistics

Threads
1,223,936
Messages
6,175,499
Members
452,649
Latest member
mr_bhavesh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top