Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |