The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi and good day to all,
Can someone help me on my new calculated column. I have a table with column scope, % materials, Budgeted hrs, Treade and Hour Equevalent. Basically what i want to achieved is
Table:
Desired Output
Thank you
Solved! Go to Solution.
Hi @AllanBerces - You can create the calculated column for "Hour Equivalent" in Power BI using DAX.
Please check and i hope it works at your end.
Proud to be a Super User! | |
Hi @rajendraongole1 @divyed @DataNinja777 thank you very much for the reply, I tried all your solution and it's perfectly.
Hello @AllanBerces ,
You can try below dax :
Please modify table and field names or let us know in case you want differenyt result.
Cheers
Hi @AllanBerces ,
Your requirement can be easily handled with a calculated column in Power BI using the DAX formula below similar to the Excel example you produced:
Hour Equivalent =
SWITCH(
TRUE(),
'YourTable'[Trade] = "Scaff", 'YourTable'[Budgeted hrs],
ISBLANK('YourTable'[% Materials]), 'YourTable'[Budgeted hrs],
'YourTable'[% Materials] * 'YourTable'[Budgeted hrs]
)
Best regards,
Hi @AllanBerces - You can create the calculated column for "Hour Equivalent" in Power BI using DAX.
Please check and i hope it works at your end.
Proud to be a Super User! | |