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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
ryanhughes
Regular Visitor

creating blank future dates

So I have a measure, thats taking a running total of the values for this fiscal year, however i need the future dates to be blank.. can anyone see what ive done wrong in my dax or have any advice for what could be wrong? Ive tried adjusting the relationships but to no avail

Screenshot 2022-12-19 105155.png

1 ACCEPTED SOLUTION
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @ryanhughes 

 

Can you please try the following

 

instead of:

 

_seldate =SELECTEDVALUE(DimDate[Date])

 

please use

 

_seldate =MAX(DimDate[Date])

 

or

 

_seldate =MIN(DimDate[Date])

 

I assume that you Date table is on daily base and when you use SELECTEDVALUE as well as filter by month then the result of SELECTEDVALUE will be blank any time since there is more then one value behind a month.

 

Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your thumbs up!
@ me in replies or I'll lose your thread.

 

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

View solution in original post

4 REPLIES 4
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @ryanhughes 

 

Can you please try the following

 

instead of:

 

_seldate =SELECTEDVALUE(DimDate[Date])

 

please use

 

_seldate =MAX(DimDate[Date])

 

or

 

_seldate =MIN(DimDate[Date])

 

I assume that you Date table is on daily base and when you use SELECTEDVALUE as well as filter by month then the result of SELECTEDVALUE will be blank any time since there is more then one value behind a month.

 

Best regards
Michael
-----------------------------------------------------
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your thumbs up!
@ me in replies or I'll lose your thread.

 

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

Yep that worked, thanks very much!

ryanhughes
Regular Visitor

No the dates after today I want to be blank so that "if" statement needs to say  IF(_seldate> TODAY(), BLANK(),...

tamerj1
Super User
Super User

Hi @ryanhughes 

you mean _seldate < TODAY ( )

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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