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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors