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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,226,737
Messages
6,192,736
Members
453,752
Latest member
Austin2222

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