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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.