Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
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.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 79 | |
| 38 | |
| 31 | |
| 27 | |
| 27 |