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.
Hi,
I have a table which contains all live policies from our database, which has a column with the policy craete date. I am trying to create a column that identifies whether a policy was created within 12 months from today's date.
In short, I need to see if a policy was created within the last 12 months, then this is classed as 'New Business', if not, then this will remain blank.
Is this possible?
Thanks.
Solved! Go to Solution.
Hi @Anonymous
You can add a calculated column in yoru policy table along the following lines
Policy Live =IF('Table1'[Date]>TODAY()-365,1,0)
Which you can then use as a filter. You don't have to use 1/0 either. You can subsitute with text if you prefer "live" / "not live"
or use the BLANK fuction instead of the 0
@Anonymous
You can also try Power Query approach. Just add a custom column using Date.AddMonths() function in Query Editor.
Regards,
@Anonymous
You can also try Power Query approach. Just add a custom column using Date.AddMonths() function in Query Editor.
Regards,
Hi @Anonymous
You can add a calculated column in yoru policy table along the following lines
Policy Live =IF('Table1'[Date]>TODAY()-365,1,0)
Which you can then use as a filter. You don't have to use 1/0 either. You can subsitute with text if you prefer "live" / "not live"
or use the BLANK fuction instead of the 0
Hi,
you can try to use Power Query for that job.
There is an equivalent in DAX for that.
calculated column
check = if(DATEADD([createdate],-1,year)>=1,"new business","")
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |