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

The Fabric Community site will be in read-only mode on Monday, Feb 24 from 12:01 AM to 8 AM PST for scheduled upgrades.

Reply
MangeshVC
Frequent Visitor

Date value available, still returns as Blank

Hi All.

I am facing a very strange situation where I have one table which has around 17k records & each record has date value and the data type is Date too.

I want to write one measure based on the date but it is not giving the desired result as date field treated as blank.

Below is the actual screenshot. I tried with MAX,MIN also, still same result. The below table visual values are coming from same table, so no issue of Relationship.

 

MangeshVC_0-1720157604954.png

 

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@MangeshVC , First check for blank using below mentioned measure

CountBlanks = COUNTROWS(FILTER(tbl_Prev_Maintenance, ISBLANK(tbl_Prev_Maintenance[Planneddate])))

 

Then use hasonevalue function instead of selected value

ScheduledMaintenanceStatus =
IF(
HASONEVALUE(tbl_Prev_Maintenance[Planneddate]),
IF(
ISBLANK(SELECTEDVALUE(tbl_Prev_Maintenance[Planneddate])),
1,
0
),
BLANK()
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

2 REPLIES 2
Rakesh1705
Super User
Super User

Hi Please check your data type once again. I have tried with the same formula what you have mentioned and it is working. Please check the snap.

Rakesh1705_0-1720171298942.pngRakesh1705_1-1720171335027.png

 

 

 

bhanu_gautam
Super User
Super User

@MangeshVC , First check for blank using below mentioned measure

CountBlanks = COUNTROWS(FILTER(tbl_Prev_Maintenance, ISBLANK(tbl_Prev_Maintenance[Planneddate])))

 

Then use hasonevalue function instead of selected value

ScheduledMaintenanceStatus =
IF(
HASONEVALUE(tbl_Prev_Maintenance[Planneddate]),
IF(
ISBLANK(SELECTEDVALUE(tbl_Prev_Maintenance[Planneddate])),
1,
0
),
BLANK()
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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