Forum Discussion

Abdulazizsagga's avatar
Abdulazizsagga
Regular Visitor
4 years ago
Solved

mesaure dynamic text (Active or Expired)  based on date Colum (Contract End Date)

Hello I have card visual and i need to create mesaure dynamic text (Active or Expired)  based on date Colum (Contract End Date) for example :  the end date of contract A is  11/05/2021 the result ...
  • Greg_Deckler's avatar
    Greg_Deckler
    4 years ago

    Abdulazizsagga Try:

    Column = IF(TODAY()>[End Date],"Active","Expired")
    
    Measure = IF(TODAY()>MAX('Table'[End Date],"Active","Expired")
  • v-xiaotang's avatar
    4 years ago

    Hi Abdulazizsagga 

    If you want the card visual to show blank until you select one contract, you can try this,

    Measure = IF(ISBLANK(SELECTEDVALUE('Table'[contract])),BLANK(),IF(SELECTEDVALUE('Table'[End Date])<TODAY(),"Expired","Active"))

     

     

    Best Regards,

    Community Support Team _Tang

    If this post helps, please consider Accept it as the solution to help the other members find it more quickly.