The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
94 | |
88 | |
71 | |
65 |
User | Count |
---|---|
241 | |
124 | |
120 | |
81 | |
79 |