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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
AGo
Post Patron
Post Patron

Dynamic double date filter

Hi everybody,
In power BI I can't use a date what if parameter and I can't dynamic filter a calculated table with the result of a measure, so I'm looking for a solution to this problem.

My table has these fields, Object ID (PK), Attended delivery date, Delivery date (if delivered), Quantity.

I would like to report two filters (consumption dates and forecast dates) and three tables with their quantities (consumption object list, forecast object list and the union of the two).
So I don't want to analyze only how many objects have been delivered by now and how many are waiting to be delivered now, but I want to give the user the chance to determine with two filters when in the past to start considering objects as consumptive or forecasted.

Attention: an object which is in consumptive table doesn't have to exist in forecast table.

 

I hope someone has a solution to this.

Thanks in advance

 

3 REPLIES 3
v-xicai
Community Support
Community Support

Hi @AGo ,

 

>>but I want to give the user the chance to determine with two filters when in the past to start considering objects as consumptive or forecasted.

 

I am not sure what desired result would you want, could you please share your sample data and desired output screenshots for further analysis? You can also upload sample pbix to OneDrive and post the link here. Do mask sensitive data before uploading.

 

Please read this post to get your answer quickly: How to Get Your Question Answered Quickly.

 

Best Regards,

Amy

 

Sorry I can't use OneDrive because of non public link company policy. 

Used this:

https://mega.nz/#!bswlGQ5Y!JS9WPRYrl5iEIuLTdgDTH4k7gQu2H1EOR7tSQAA7NFE

 

Thanks

@v-xicai 

I created it in two ways.

First I created two formula

 

Forecast Out = CALCULATE(DISTINCTCOUNT('Table'[PK]),ALLEXCEPT('Table','Table'[Forecast date]))
Effective Out = CALCULATE(DISTINCTCOUNT('Table'[PK]),ALLEXCEPT('Table','Table'[Effective delivery]))

Screenshot 2019-09-14 14.21.19.png

 

 

 

Also done using do different date dimensions

 

Join Effective = CALCULATE(DISTINCTCOUNT('Table'[PK]),CROSSFILTER('Table'[Forecast date],'Forecast Date'[Forecast date],None))
Join Forecast = CALCULATE(DISTINCTCOUNT('Table'[PK]),CROSSFILTER('Table'[Effective delivery],Eff_date[Effec date],None))

 

 

Screenshot 2019-09-14 14.21.27.pngScreenshot 2019-09-14 14.21.37.png

 

If fine and need, I can upload the pbix to dropbox

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors