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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Anonymous
Not applicable

Only show budget for current year in visual

Hi. I have a visual showing sales for the last 12 months and would like to show the budget as well. However, I only want budget for current year, so from January - April 2024. Do I create a new measure for the budget, where the value is 0 if date/year is earlier than current year?

 

Any suggestions?

HLVW_0-1716540867467.png

 

Thanks a lot in advance.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi.

 

I solved it with below measure:

Budget Sales Current Year:=
IF(YEAR(MAX('Date'[Date]))=YEAR(NOW()),
[Budget Sales],0)

 

Thanks!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi.

 

I solved it with below measure:

Budget Sales Current Year:=
IF(YEAR(MAX('Date'[Date]))=YEAR(NOW()),
[Budget Sales],0)

 

Thanks!

Wilson_
Memorable Member
Memorable Member

Hi HLVW,

 

Your idea would work, yes.


----------------------------------
If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

 

P.S. Need a more in-depth consultation for your Power BI data modeling or DAX issues? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.