Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
emma313823
Helper V
Helper V

tweaking a measure

All,

 

I have a measure I'm using called AvgMoRevCurrYr which is:

 

AvgMoRevCurrYr = DIVIDE(CALCULATE(SUM('Acctg Revenue'[Revenue]), FILTER('Acctg Revenue', 'Acctg Revenue'[Date] < EOMONTH(TODAY(),-1))) , (MONTH(TODAY())-1), 0)
 
I use the above measure elsewhere, however I'd like to tweak this measure so it would do the following:
 
NEW MEASURE:  AvgMoClosedRev
 
In a card visual, my CEO does not want to see the current month we are in as revenue gets accumulated throughout the month. Instead he wants to see up to and including the month previously closed.
 
For example, the month of July is closed, so the value shown on the card should only be reflective of January through end of July. When September 1st rolls in, August numbers would be added on the card value to reflect Jan-Aug.
 
Can someone help me tweak this DAX so the measure would perform as I've noted?
 
Emma
Emma
1 ACCEPTED SOLUTION
emma313823
Helper V
Helper V

Ok that is honestly what I thought, so thank you for confirming for me. 

Emma

View solution in original post

2 REPLIES 2
emma313823
Helper V
Helper V

Ok that is honestly what I thought, so thank you for confirming for me. 

Emma
AlexisOlson
Super User
Super User

To me, it looks like your AvgMoRevCurrYr measure already excludes the current month, so I'm not sure how the tweak is intended to behave differently.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.