Forum Discussion
Conditional Measure Based on Date
- 6 years ago
Hi awitt ,
We can try to use the following measure to meet your requirement:
Count = CALCULATE ( DISTINCTCOUNT ( 'Table'[OrderItemID] ), FILTER ( 'Table', OR ( ISBLANK ( 'Table'[FINALDATE] ), NOT ( OR ( 'Table'[CONDATE] > MAX ( 'DateSlicer'[Date] ), 'Table'[FINALDATE] <= MIN ( 'DateSlicer'[Date] ) ) ) ) ) )
Best regards,
Hi awitt ,
We can put the measure into visual filter of table chart, then set it "is not blank" or "is not zero" to meet your requirement:
By the way, PBIX file as attached.
Best regards,
v-lid-msft The only thing that seems off is that Blank FINALDATE values are not included in the measure and they should be. If this is essentially open orders, there wont be Final Dates for active orders that haven't yet been completed.
- v-lid-msft6 years agoCommunity Support
Hi awitt ,
We can try to use the following measure to meet your requirement:
Count = CALCULATE ( DISTINCTCOUNT ( 'Table'[OrderItemID] ), FILTER ( 'Table', OR ( ISBLANK ( 'Table'[FINALDATE] ), NOT ( OR ( 'Table'[CONDATE] > MAX ( 'DateSlicer'[Date] ), 'Table'[FINALDATE] <= MIN ( 'DateSlicer'[Date] ) ) ) ) ) )
Best regards, - v-lid-msft6 years agoCommunity Support
Hi awitt ,
How about the result after you follow the suggestions mentioned in my original post?Could you please provide more details about it If it doesn't meet your requirement?
Best regards,