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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Add 3 days more to date selection

Hi all, 

 

Anyone knows how to add the a three days + range, based on user selections on 'Date Début effective' ? 

Cheers 

 

 

% Onboarding =
var Date1 = CALCULATE(SELECTEDVALUE(Table1[Date Début Effective]))
var Date2 = CALCULATE(SELECTEDVALUE(Table1[Date Fin Effective]))
Return
IF(SELECTEDVALUE(t_Datas[Date])=Date1;
Calculate(
DIVIDE([M_Filter_MissionID S04] ; [M_Count_MissionID]))
1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

Do you want to achive this output below? If we select the date in date slicer, the card visual will show the date of the date we selected +3.

Capture.PNG

If that is your case, you could use the formula.

Measure = CALCULATE(SELECTEDVALUE(Sheet9[Date]))+3

If you still need help, please share your data sample and your desired output so that we can help further on it.

Best Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

Do you want to achive this output below? If we select the date in date slicer, the card visual will show the date of the date we selected +3.

Capture.PNG

If that is your case, you could use the formula.

Measure = CALCULATE(SELECTEDVALUE(Sheet9[Date]))+3

If you still need help, please share your data sample and your desired output so that we can help further on it.

Best Regards,

Cherry

 

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

You mean like:

 

% Onboarding = 
var Date1 = CALCULATE(SELECTEDVALUE(Table1[Date Début Effective])) + 3
var Date2 = CALCULATE(SELECTEDVALUE(Table1[Date Fin Effective]))
Return
IF(SELECTEDVALUE(t_Datas[Date])=Date1; 
Calculate(
DIVIDE([M_Filter_MissionID S04] ; [M_Count_MissionID]))

?


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

i Greg, 

 

More useful information: 

 

1) dont seem to be able to convert the new column into a "Whole Number" so that then I can "+3"

1.JPG

 

 

 

 

2) Doing the exact same for my Date column in my calendar table and works as a charm. 

 

2.JPG

 

3) Both columns have the same date format. 

3.JPG

 

Is there a reason for this awkward behaviour? I sometimes dont get the engine behind. 

 

Cheers.

 

Hi @Anonymous ,

Have you solved your problem?

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

If you still need help, please feel free to ask.

Best  Regards,

Cherry

 

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

Can anyone help me please? 

It's increasing the days and not the months as it's supposed to. 

THANKS ! 

 

FORMULA: 

S06 Teste =
CALCULATE(SELECTEDVALUE(t_Missions[Date Début Effective]))+3
 
Capture.JPG
 
Anonymous
Not applicable

Hi Greg,

 

That was in fact my first attempt. However, I do not get the expected result.

It just keeps retrieving 3 if I add '.MonthNo' or '02-01-1900 00:00:00'.

What am I doing wrong ? 

 

Thank you so much! 

 

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.