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
I have this formula:
YTD Budget = VAR MaxMonth = [MaxMonth]
RETURN CALCULATE([CustomerBudget],'Date'[MonthNum] <= MaxMonth)
It works but it's showing YTD Budget (same number) for every month.
How do I hide all the future months and only show in this case January. So similar how Yago YTD is showing up.
Thank you for your help!!!
Solved! Go to Solution.
Probably the budget is not blank then, perhaps check if the sales column is blank?
Your formula would be:
YTD Budget (final) = VAR MaxMonth = [MaxMonth]
RETURN IF(NOT(ISBLANK([Sales])),
CALCULATE([CustomerBudget],'Date'[MonthNum] <= MaxMonth), blank())
					
				
			
			
				Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article 
My Community Blog Articles (check them out!) 
My Blog   -  Power M code to automatically detect column types - 
 How to create test data using DAX! 
YES!!! This formula worked:
Hi,
IF(NOT(ISBLANK([CustomerBudget] ), CALCULATE([CustomerBudget],'Date'[MonthNum] <= MaxMonth), BLANK())
					
				
			
			
				Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article 
My Community Blog Articles (check them out!) 
My Blog   -  Power M code to automatically detect column types - 
 How to create test data using DAX! 
Thank you so much, Steve, but something is not working:
You would still need the var.
YTD Budget = VAR MaxMonth = [MaxMonth]
RETURN 
if(not(blank([CustomerBudget]),
CALCULATE([CustomerBudget],'Date'[MonthNum] <= MaxMonth), blank())
					
				
			
			
				Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article 
My Community Blog Articles (check them out!) 
My Blog   -  Power M code to automatically detect column types - 
 How to create test data using DAX! 
Probably the budget is not blank then, perhaps check if the sales column is blank?
Your formula would be:
YTD Budget (final) = VAR MaxMonth = [MaxMonth]
RETURN IF(NOT(ISBLANK([Sales])),
CALCULATE([CustomerBudget],'Date'[MonthNum] <= MaxMonth), blank())
					
				
			
			
				Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article 
My Community Blog Articles (check them out!) 
My Blog   -  Power M code to automatically detect column types - 
 How to create test data using DAX! 
YES!!! This formula worked:
Welcome! Don't forget to mark as solution.
Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article 
My Community Blog Articles (check them out!) 
My Blog   -  Power M code to automatically detect column types - 
 How to create test data using DAX! 
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 | 
|---|---|
| 8 | |
| 5 | |
| 5 | |
| 4 | |
| 3 | 
| User | Count | 
|---|---|
| 24 | |
| 11 | |
| 10 | |
| 9 | |
| 8 |