Forum Discussion
Meena
3 years agoFrequent Visitor
Ignore filter based on another filter
Hello All, I am new to power BI and working on an issue. My dataset is as below and have a filter on ClosedDate to include only Dates in Future. I have to ignore the ClosedDate filter if the Stat...
- Anonymous3 years ago
Hi Meena ,
Please try below dax formula to create a measure and add it to table visual
Measure = VAR cur_date = NOW () VAR cur_status = SELECTEDVALUE ( 'Table'[Status] ) VAR cur_closedate = SELECTEDVALUE ( 'Table'[ClosedDate] ) RETURN SWITCH ( TRUE (), cur_closedate > cur_date, "Return", cur_status = "Ongoing", "Return" )Please refer the attached .pbix file.
Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
3 years agoNot applicable
Hi Meena ,
Please try below dax formula to create a measure and add it to table visual
Measure =
VAR cur_date =
NOW ()
VAR cur_status =
SELECTEDVALUE ( 'Table'[Status] )
VAR cur_closedate =
SELECTEDVALUE ( 'Table'[ClosedDate] )
RETURN
SWITCH (
TRUE (),
cur_closedate > cur_date, "Return",
cur_status = "Ongoing", "Return"
)
Please refer the attached .pbix file.
Best regards,
Community Support Team_ Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.