Forum Discussion
USE Relationship for date filter
It's a good idea to include sample data, as solutions may vary depending on data structure.
Measure =
Var _MaxDate = Max(calendar[date])
Var _GoLivedate = Max(Table[GoLiveDate])
Var _Result = If(_GoLiveDate > _MaxDate, 0,1)
Return
_Result // Add to filter pane and remove all who return 0You'll probably also need to incorpora the same for minimum date
Hello,
its not working its always showing 1 .i have active relationship with Trasaction date not with Go Live date so in date slicer when i try to filter Actual go live date willl not work since there is no join somehow we need to create this filter (golive date< max date from slicer) by using userelationp (changing context from Transaction date with Go Live date ) with go live date
- NickolajJessen4 years ago
Solution Sage
Are you able to share a .pbix or dummy .pbix through dropbox for your preferred sharing service?
- Varun5114 years ago
Helper I
unfortnately cant share as it contains company date but i can explain what you are trying to expect
below is the data model
my only question is to apply filter Actual date < max date from slicer (Slicer is coming date table) since have joined date table with Transaction date as active relationship Actual go live date filte is not working need to remove the current text and add use relationship to filter but calculate will not work in this case am just wondering how to approach this colution
- Varun5114 years ago
Helper I
Any idea? am not able to find any solution for this any Anonymous Experts?
- Anonymous4 years agoNot applicable
Hi Varun511 ,
May I know if NickolajJessen 's last reply can solve your problem? If not, could you please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples? It is better if you can share a simplified pbix file with fake data. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards