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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Measure to Return Date when a slicer is selected

Hello Experts,

 

I am trying to create a measure in which I want to return the date of entry only if its ID no is selected from Slicer.
 

I am trying below DAX query in measure =   IF(ISFILTERD(Table[id]),VALUE(Table[Date])," -")

I want to keep the result blank until the ID is selected as I am showing this date in a Batch Card.

 

the result i am getting is -#,0.00
Can someone please help me to resolve this issue?

 

4 REPLIES 4
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

Has this issue been solved?  We can also use the following measure to meet your requirement:

 

measure =
IF (
    HASONEVALUE ( Table[id] ),
    VALUES ( Table[Date] ),
    BLANK ()
)

 


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-lid-msft ,

Yes,  it is resolved. 

Thanks.

 

Hi @Anonymous ,

 

Glad to hear that you have resolved your problem. Could you sharing the solution you used in this scenario, if it does not contain any confidential information,  so that it can benefit more users in forum? Thanks in Advance.


Best regards,

 

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

Have you tried liked

IF(ISFILTERD(Table[id]),VALUE(Table[Date]),blank())

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @

Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Datanaut Connect on Linkedin

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors