Forum Discussion
Compare 2 Date Columns by Time Logic
- 8 years ago
Hi Anonymous,
From your description, I have entered some sample data like the picture below:
For the first issue:
Sample data
Create a calculated column and you can see the result.
Column = IF([Date Completed]>=[Store Date],[Date Completed],BLANK())
For the second issue:
Sample data
Create a calculated column and you can see the result.
Column = (DATEDIFF([Date Approved],[Date Reviewed],WEEK)+1)<=2
If I misunderstood you, could you please offer me more information about your data structure or share your pbix file if possible?
You can also download the PBIX file to have a view.
https://www.dropbox.com/s/q0uw1ndwbfmkt40/Compare%202%20Date%20Columns%20by%20Time%20Logic.pbix?dl=0
Regards,
Daniel He
Hi Anonymous,
From your description, I have entered some sample data like the picture below:
For the first issue:
Sample data
Create a calculated column and you can see the result.
Column = IF([Date Completed]>=[Store Date],[Date Completed],BLANK())
For the second issue:
Sample data
Create a calculated column and you can see the result.
Column = (DATEDIFF([Date Approved],[Date Reviewed],WEEK)+1)<=2
If I misunderstood you, could you please offer me more information about your data structure or share your pbix file if possible?
You can also download the PBIX file to have a view.
https://www.dropbox.com/s/q0uw1ndwbfmkt40/Compare%202%20Date%20Columns%20by%20Time%20Logic.pbix?dl=0
Regards,
Daniel He
Hi what can be done if I want it to display as "On Time/Late" instead of True False?
- Uno7073 years agoFrequent Visitor
you could run a secondary column that runs a simple IF/THEN in which true=on time, and false=Late.
Or Nest the if statement at the front