Forum Discussion
sagarsahoo_123
3 years agoHelper IV
Request help to write Code for Consecutive months Lower Performer
Hello Team, I have a requirement in Power BI. I have a table having Employee ID and each Employee having Work Hours information month wise. I want to display the users who are having less than 6hou...
- 3 years ago
Hi sagarsahoo_123 ,
Try formula like below:
avg_ = VAR avg_ = AVERAGEX ( FILTER ( ALL ( 'Table' ), 'Table'[Emp ID] = MAX ( 'Table'[Emp ID] ) ), CALCULATE ( SUM ( 'Table'[Work Time] ) ) ) RETURN IF ( avg_ < 6, "Yes", "No" )If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
3 years agoSuper User
sagarsahoo_123 , I have this video, in the logic, you add your condition of <6 , which should work
Power BI- Customer Purchasing in each of the last 3 months: https://youtu.be/bGtjoccEA38