Forum Discussion

ChPetru's avatar
ChPetru
Helper I
3 years ago
Solved

Date Reference as parameter to determine True/False

Hello, I am trying to determine wether a license is active or expired based on License Start Date, License End Date and a Reference Date (can be today or any other date). Here is the logic for an A...
  • daXtreme's avatar
    3 years ago

    Hi ChPetru 

     

    Solution attached.

     

    A hint:

    The dimension for products is not set correctly. This is not the way you normally set a dimension (which poses some problems right now inside PBI). Many id's have been assigned the same product name. You should have a one-to-one correspondence between the product id and the product name. There are too many reasons why this should be so, therefore I'm not going to enlarge upon this.

     

    Nevertheless, the solution works, but please stick to proper data modeling techniques if you want to be safe in the future. Thanks.