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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.