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
nabullock
Frequent Visitor

Issue using SELECTEDVALUE for selecting a specific date.

This code returns the correct value in a table "visual" 

nabullock_0-1681143472821.png

But this to a column in table

nabullock_1-1681143572340.png

sDate =
VAR selectedDate =SELECTEDVALUE(SelDates[ListedDate]) -30
Return selectedDate
 

 

1 ACCEPTED SOLUTION
MohammadLoran25
Super User
Super User

Hi @nabullock ,

You just need a CALCULATE:

sDate =
VAR selectedDate =
    CALCULATE ( SELECTEDVALUE ( SelDates[ListedDate] ) ) - 30
RETURN
    selectedDate

 

If this solves your question, Please give it a thumbs up and accept it as a solution to make it easier for the others to find what they are looking for.

Regards,
Loran

 

 

 

View solution in original post

2 REPLIES 2
nabullock
Frequent Visitor

Thanks!

MohammadLoran25
Super User
Super User

Hi @nabullock ,

You just need a CALCULATE:

sDate =
VAR selectedDate =
    CALCULATE ( SELECTEDVALUE ( SelDates[ListedDate] ) ) - 30
RETURN
    selectedDate

 

If this solves your question, Please give it a thumbs up and accept it as a solution to make it easier for the others to find what they are looking for.

Regards,
Loran

 

 

 

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.

Top Solution Authors