Forum Discussion

JB0007's avatar
JB0007
Frequent Visitor
4 years ago
Solved

Table is not filtering on Dates

Hi Power BI community,   I have created a manual date table using the DAX formula: Dates = ADDCOLUMNS( CALENDARAUTO(), "Year",YEAR([Date]), "Quarter No", QUARTER([Date]), "Quarte...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi JB0007 ,

     

    Firstly, you could change the second table to slicer visual.

    https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-slicers 

    Secondly, the [start date] in the first table is datetime type so it will not It is not equal to the date selected in the second table -- 8:00 am <> 12:00 am. I suggest you to change them to date type for comparison.

    At last, you could create a measure to rank the [start date]. Set the selected date as 0 and sort dates order by measure.

    _start = SELECTEDVALUE(Table1[start date])
    
    rank_ = IF(SELECTEDVALUE(Table1[start date])=SELECTEDVALUE(Table2[date]),0,RANKX(all(Table1),[_start],,ASC))

     

    Best Regards,

    Jay