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.
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.
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 |
---|---|
106 | |
93 | |
75 | |
62 | |
50 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |