Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hello,
I wonder if you might be able to help. I am trying to work out a way in PowerBi to return the result in the yellow column below...such as...if the "type" is an employee return a value of zero but if the "type" is a contractor turn the value in the "hours" column.
Thank you,
Sean
Solved! Go to Solution.
Hi @sean123,
It's an easy one - you can solve your case with a calculation column like this:
Contractor Hours = IF ( [Type] = "Contractor", [Hours], 0 )
Best Regards,
Alexander
Thank you Barritown, worked lovely!
All the best,
Sean
Hi @sean123,
It's an easy one - you can solve your case with a calculation column like this:
Contractor Hours = IF ( [Type] = "Contractor", [Hours], 0 )
Best Regards,
Alexander
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
16 | |
10 | |
8 | |
8 | |
7 |