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.
Hello community!
<Message removed>
Thanks for any help!
I did, but i keep getting stcuk at one point.
In the latest LOOKUPVALUE used in the above code, the search column should be Employee ID, but it wont let me choose that option.
I managed to work around the issue that didnt let me pick EMPLOYEE ID, and managed to complete the code, but i cant seem to narrow down the Looked up value to a single value. There are multiple Leaves taken in a single week, so LOOKUPVALUE will return a table of values and not a single one.
The Error states "A table of multiple values was supplied where a single value was expected"
Is there anyother way to do this code other than LOOKUPVALUE? Or is there something that i missed to use along with LOOKUPVALUE?
I removed the multiple leaves that were coming in a single week. Now this code works.
Employee ID | Employee Name | Leave From Date | Leave To Date | From Week No. | To Week No. | Days |
1001 | Miss. O | 1-Jan-20 | 1-Jan-20 | 1 | 1 | 1 |
1007 | Mr. K | 2-Jan-20 | 3-Jan-20 | 1 | 1 | 2 |
1009 | Mr. J | 2-Jan-20 | 15-Jan-20 | 1 | 3 | 10 |
But the ideal solution is to incorportate any scenario, and this code will fail in other situations.
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 |
---|---|
109 | |
95 | |
77 | |
65 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |