Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi,
I need to create a column that creates an output based on date today() minus 3 months.
If app_date 3 months before today then "3 months" else ""
So in my table my column would populate "3 months" where app_date is February.
Any idea how to do this please?
Solved! Go to Solution.
@M_SBS_6 , You can create a calculated column using below formula
Output Column =
IF(
'YourTable'[app_date] <= EDATE(TODAY(), -3),
"3 months",
""
)
Proud to be a Super User! | |
Hi @M_SBS_6 ,
Thank you for @bhanu_gautam answer , and I have other suggestions:
Below is my table:
The following DAX might work for you:
Column = IF(DATEDIFF('Table'[Date],TODAY(),MONTH) <= 3 , "3 month",BLANK())
The final output is shown in the following figure:
If this doesn't address your needs, can you please post the expected results?
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @M_SBS_6 ,
Thank you for @bhanu_gautam answer , and I have other suggestions:
Below is my table:
The following DAX might work for you:
Column = IF(DATEDIFF('Table'[Date],TODAY(),MONTH) <= 3 , "3 month",BLANK())
The final output is shown in the following figure:
If this doesn't address your needs, can you please post the expected results?
Best Regards,
Xianda Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@M_SBS_6 , You can create a calculated column using below formula
Output Column =
IF(
'YourTable'[app_date] <= EDATE(TODAY(), -3),
"3 months",
""
)
Proud to be a Super User! | |
Thank for the suggestion but that populates previous months with a value to, I.e Feb and all months prior to Feb
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
84 | |
83 | |
64 | |
60 | |
55 |
User | Count |
---|---|
179 | |
108 | |
105 | |
71 | |
70 |