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 am trying to create a nested if statement with multiple variables. However i can't seem to get the pieces below to connect correctly and the second argument only gives me false instead of the results i am looking for. The first piece works just fine on its own. However, I just need to know how to connect it to the second piece and get the logic to work together.
I want the second piece to work as such: if the actual ship date is blank and less than the scheduled pickup from date then "Missed" else its "pending" I need that tied into the first piece to create 4 possible choices based on the dates. Any help would be greatly appreciated.
Solved! Go to Solution.
@Anonymous , You need to rework on the conditions you can not have two else.
Example , how can you do it
Switch( True() ,
ISBLANK('Load Fact'[actual_ship_dt].[Date]) ,"Missed" ,
'Load Fact'[actual_ship_dt].[Date] > 'Load Fact'[scheduled_pick_up_from_dt].[Date] , "Pending",
'Load Fact'[actual_ship_dt].[Date] <= 'Load Fact'[scheduled_pick_up_from_dt].[Date],"Complete",
"Late"
)
refer for switch : https://www.youtube.com/watch?v=gelJWktlR80
@Anonymous , You need to rework on the conditions you can not have two else.
Example , how can you do it
Switch( True() ,
ISBLANK('Load Fact'[actual_ship_dt].[Date]) ,"Missed" ,
'Load Fact'[actual_ship_dt].[Date] > 'Load Fact'[scheduled_pick_up_from_dt].[Date] , "Pending",
'Load Fact'[actual_ship_dt].[Date] <= 'Load Fact'[scheduled_pick_up_from_dt].[Date],"Complete",
"Late"
)
refer for switch : https://www.youtube.com/watch?v=gelJWktlR80
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 |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |