Forum Discussion

Kris48's avatar
Kris48
Frequent Visitor
1 year ago
Solved

excluding the Date Flagged

I would like to add logic to exclude days that have the "T" flag on the calendar in measure: "Value_measure_1" URL pbix: https://drive.google.com/file/d/1rTsECeGnNXDVG0TR-_tkpnNRZnQGRv9K/view?usp=...
  • Selva-Salimi's avatar
    Selva-Salimi
    1 year ago

    @Kris48 

     

    yes you are right. update _Y variable as follows:

     

    var _Y= DATESBETWEEN('Calendar'[Date], SELECTEDVALUE('Fact'[Data from]) , SELECTEDVALUE( 'Fact'[Data to]))
     
    * I've updated my previous response to correct a part of the measure based on feedback. this will make it easier for others to find the right answer quickly. thanks for feedback