The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I need help with a formula field that looks at two existing fields and returns hard coded dates into two new fields. The first existing field is called 'dimstartdate'[monthname] and the second existing field is called 'dimstartdate'[yearnumber]. The first new field name will be called 'Media Due' and the second new field name will be called 'Client / Carrier Final Proof Approval'.
I know the logic list seems long, but it simply just varies based on the month of the year (for 2023).
Logic For Formula Field:
- If the 'dimstartdate'[monthname] field is '1' and the 'dimstartdate'[yearnumber] field is '2023' then populate the 'Media Due' field with '11/9/2023' and the 'Client / Carrier Final Proof Approval' field with '12/8/2023'.
- If the 'dimstartdate'[monthname] field is '2' and the 'dimstartdate'[yearnumber] field is '2023' then populate the 'Media Due' field with '12/9/2023' and the 'Client / Carrier Final Proof Approval' field with '1/6/2023'.
- If the 'dimstartdate'[monthname] field is '3' and the 'dimstartdate'[yearnumber] field is '2023' then populate the 'Media Due' field with '1/7/2023' and the 'Client / Carrier Final Proof Approval' field with '2/3/2023'.
- If the 'dimstartdate'[monthname] field is '4' and the 'dimstartdate'[yearnumber] field is '2023' then populate the 'Media Due' field with '2/14/2023' and the 'Client / Carrier Final Proof Approval' field with '3/11/2023'.
- If the 'dimstartdate'[monthname] field is '5' and the 'dimstartdate'[yearnumber] field is '2023' then populate the 'Media Due' field with '3/15/2023' and the 'Client / Carrier Final Proof Approval' field with '4/8/2023'.
- If the 'dimstartdate'[monthname] field is '6' and the 'dimstartdate'[yearnumber] field is '2023' then populate the 'Media Due' field with '4/18/2023' and the 'Client / Carrier Final Proof Approval' field with '5/12/2023'.
- If the 'dimstartdate'[monthname] field is '7' and the 'dimstartdate'[yearnumber] field is '2023' then populate the 'Media Due' field with '5/13/2023' and the 'Client / Carrier Final Proof Approval' field with '6/9/2023'.
- If the 'dimstartdate'[monthname] field is '8' and the 'dimstartdate'[yearnumber] field is '2023' then populate the 'Media Due' field with '6/13/2023' and the 'Client / Carrier Final Proof Approval' field with '7/8/2023'.
- If the 'dimstartdate'[monthname] field is '9' and the 'dimstartdate'[yearnumber] field is '2023' then populate the 'Media Due' field with '7/18/2023' and the 'Client / Carrier Final Proof Approval' field with '8/11/2023'.
- If the 'dimstartdate'[monthname] field is '10' and the 'dimstartdate'[yearnumber] field is '2023' then populate the 'Media Due' field with '8/12/2023' and the 'Client / Carrier Final Proof Approval' field with '9/8/2023'.
- If the 'dimstartdate'[monthname] field is '11' and the 'dimstartdate'[yearnumber] field is '2023' then populate the 'Media Due' field with '9/2/2023' and the 'Client / Carrier Final Proof Approval' field with '9/29/2023'.
- If the 'dimstartdate'[monthname] field is '12' and the 'dimstartdate'[yearnumber] field is '2023' then populate the 'Media Due' field with '10/5/2023' and the 'Client / Carrier Final Proof Approval' field with '11/1/2023'.
Solved! Go to Solution.