Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Good day Guys,
I just want to ask how to calculate between 2 dates in powerbi 2 dates column( EntryDate and ExpiryDate) in same table.
Here is my sample result that I want to achieve: How I can get the count of the active/valid policies in between entry and expirt date valid for 1 yr?
Thanks in Advance!
- RanHo
Solved! Go to Solution.
Hi @RanHo ,
Try to create a calculated column like
Valid =
var _today=DATE(2022,9,29)
return
IF(_today>=[ENTRY DATE]&&_today<=[EXPIRY DATE],1)
You can replace DATE(2022,9,29) with the TODAY() function.
The result is this.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @RanHo ,
Try to create a calculated column like
Valid =
var _today=DATE(2022,9,29)
return
IF(_today>=[ENTRY DATE]&&_today<=[EXPIRY DATE],1)
You can replace DATE(2022,9,29) with the TODAY() function.
The result is this.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
102 | |
92 | |
85 | |
78 | |
71 |
User | Count |
---|---|
113 | |
104 | |
101 | |
73 | |
65 |