Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi!
I have data arranged as follows:
Year, Product , Gross Sales
I then created measures for Rolling Averages (for preceding three years. This serves as the Target), Running totals (would reset annually), and Target Status(whether the running totals exceeds the rolling average).
Now, I want to return the Month (using a date table) by finding the minimum date where running total is greater than target but since I'm using a measure as reference and not an absolute value, an error is returned that a Calculate function is used in a filter and that it is not allowed. How would I go around this?
You should apply all dates as row context in FILTER() function to compare two measures.
AchieveDay = CALCULATE(MIN(Table4[Date]),FILTER(ALL(Table4[Date]),[ytd]>[AVG]))
Regards,
Hi! Thanks for your response. But I also want to filter by product. Using your formula, it only returns the same date regardless of the product. I'm sorry I'm really new to Power BI
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
 
            | User | Count | 
|---|---|
| 84 | |
| 49 | |
| 36 | |
| 31 | |
| 30 |