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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply

Select days from relative date slicer

Hi All,

 

I like to select the days out of the relative date slicer.

 

De reason is that we always make predictions based on L30D. But of we want to make the predictions on L120D, we need to recalculate it to 30D (L120D / 120 * 30). The only way I can do this, is getting the number of days out of the relative date slicer.

 

I tried this with Selectedvalue,... but doesn't work 😞

Knipsel1.JPG

 

Tanks,

Dennis

 
 
 
1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @dennisdepoorter

 You may try to use this formula as below:

Measure = DATEDIFF(MIN('Order'[ActivatedDate]),TODAY(),DAY )+1

Result:

3.PNG4.PNG

Best Regards,

Lin

 

 

Community Support Team _ Lin
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

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hi, @dennisdepoorter

 You may try to use this formula as below:

Measure = DATEDIFF(MIN('Order'[ActivatedDate]),TODAY(),DAY )+1

Result:

3.PNG4.PNG

Best Regards,

Lin

 

 

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

THANKS @v-lili6-msft this works indeed!!!! 🙂

Greg_Deckler
Community Champion
Community Champion

Can you provide sample data and the DAX calculations you are using? You should just be able to use COUNTROWS(CalendarTable) in your formula. That would tell you how many days you are dealing with 30, 60, 120. But I'd need additional information to be sure.

 

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler,

 

Thanks for your quick response!

You can find a test environment with fictief data and no Salesforce link here: https://www.dropbox.com/s/vupkg4chx07v5hf/test.pbix?dl=0

 

Best,

Dennis

 
 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.