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

Control Date Range Within A Dax formula using Slicer

Hi All,

I have the below dax formula

Total Applications  = CALCULATE(COUNT('Stage - Application'[LoanID]),CREATIONDATE = DATESBETWEEN()  )
I want to be able to alternate the creationdate range within the dax IN DATESBETWEEN using a slicer. Is this possible? I want a situation when i change the date on the slicer it affects the date range inside the dax formula
1 ACCEPTED SOLUTION
v-xulin-mstf
Community Support
Community Support

Hi @IIgiwa ,

 

Here is the sample, you can drop 'Stage - Application'[creationdate] to slicer.

vxulinmstf_0-1625794670321.pngvxulinmstf_1-1625794682222.png

vxulinmstf_2-1625794799692.png

 

If not solved, please provide your sample or screenshots.

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

View solution in original post

3 REPLIES 3
v-xulin-mstf
Community Support
Community Support

Hi @IIgiwa ,

 

Here is the sample, you can drop 'Stage - Application'[creationdate] to slicer.

vxulinmstf_0-1625794670321.pngvxulinmstf_1-1625794682222.png

vxulinmstf_2-1625794799692.png

 

If not solved, please provide your sample or screenshots.

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

selimovd
Super User
Super User

Hey @IIgiwa ,

 

how is your date table connected with the 'Stage - Application' table?

If it's by column 'Stage - Application'[creationdate] then you don't need any DAX. Just use a slicer with the date from the date table and your data will automatically filter to the desired data.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

Hi @selimovd ,

Thanks for your reply. 

The date table is by Stage - Application'[creationdate]. I had tried it like you suggested but it didn't work. I used data from the Stage - Application to set up a table for a funnel process and the first stage of the funnel is Total Applications. So i want to be able to look at the funnel at different time periods 

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.