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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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