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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

make values blank if its in the previous months

Capture.JPG

 

 

Hi All, 

 

i have this dataset that is connected to a date table. I would like to have the column in green where my figures are the same as the column on the left except for the period jan to march (months less than this month), i want it to be left as zero/blank. So the formula might look like if the date is thismonth or less then give me the "value" column else 0. But i just dont know how to write it. thanks alot in advance!!!!! Please note that this has to be a measure not column. 

 

THANK YOU!!!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Assuming month year coming from date table and table having date. And value is a measure.

 

Try a measure like

if(max('Date'[Date]) <= eomonth(today(),0),0,[values])

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

 

Can you try like below?

 

What I want as Measure =
VAR currentdate = today()
RETURN
IF( MIN(Dates[Date]) < currentdate, BLANK(), YOURMEASURE!!)
 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster.

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


amitchandak
Super User
Super User

@Anonymous , Assuming month year coming from date table and table having date. And value is a measure.

 

Try a measure like

if(max('Date'[Date]) <= eomonth(today(),0),0,[values])

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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