Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I created a duplicate of the column "Einzeldauer" and named it "Ersatzstunden". The column "Einzeldauer" must stay untouched.
1. If a cell in column "Grund Abwesend" is "Feiertag" and the cell in the column "Kommentar" contains "ÜÜ" then the value of the cell in the column "Ersatzstunden" should stay untouched.
2. If a cell in column "Grund Abwesend" is "Feiertag" and the cell in the column "Kommentar" contains "ÜÜN" then the value of the cell in the column "Ersatzstunden" must be multiplied by -1.
3. In any other case the value of the cell in the column "Ersatzstunden" should be "null".
original:
expected result:
Which formula would I have to enter into the Advanced Editor?
Many thanks for hints!
Solved! Go to Solution.
Hello @Anonymous !
My suggestion is:
1. Delete the current Ersatzstunden column you have
2. Add Column > Custom Column and try this
if [Grund Abwesend] = "Feiertag" and Text.Contains([Kommentar], "ÜÜ") then [Einzeldauer]
else if [Grund Abwesend] = "Feiertag" and Text.Contains([Kommentar], "ÜÜN") then Value.Multiply([Einzeldauer],-1)
else null
Hello @Anonymous !
My suggestion is:
1. Delete the current Ersatzstunden column you have
2. Add Column > Custom Column and try this
if [Grund Abwesend] = "Feiertag" and Text.Contains([Kommentar], "ÜÜ") then [Einzeldauer]
else if [Grund Abwesend] = "Feiertag" and Text.Contains([Kommentar], "ÜÜN") then Value.Multiply([Einzeldauer],-1)
else null
Thank you very much. It works not as expected as the first "ÜÜ" already fulfills the "if" and so "ÜÜN" will never be identified. Once I changed "ÜÜ" to "ÜÜP" in my source files and changing the formula as follows ist works fine:
if [Grund Abwesend] = "Feiertag" and Text.Contains([Kommentar], "ÜÜP") then [Einzeldauer]
else if [Grund Abwesend] = "Feiertag" and Text.Contains([Kommentar], "ÜÜN") then Value.Multiply([Einzeldauer],-1)
else null
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
87 | |
66 | |
51 | |
45 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |