Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello everyone, I'm having an issue with one of the visuals below. Basically, I want both to reflect the number of employees who worked 40+ hours (using my measure Total Hours = SUM('Labor Data'[Reg Hours]) + SUM('Labor Data'[OT Hours]) ). When I apply this measure to the bottom table visual with >=40 set, it works fine and shows the correct total number of employees at 390. However, when I do the exact same thing with the chart above, it ignores the filter altogether and shows the incorrect total of 637.
Any ideas? Thanks so much.
Solved! Go to Solution.
You could use a measure like this in the chart.
Overtime Employees = COUNTROWS(FILTER(DISTINCT(Table[employee]),[Total Hour] >= 40))
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
You could use a measure like this in the chart.
Overtime Employees = COUNTROWS(FILTER(DISTINCT(Table[employee]),[Total Hour] >= 40))
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
This one worked. Thanks!
Thanks, @amitchandak, but that new measure still doesn't work on the chart. It works on the table visual, though.
@wbhite , You need to use a measure. Assume you have measure total Hour
Sumx(filter(values(Table[employee]),[Total Hour] >= 40), [Total Hour])
User | Count |
---|---|
119 | |
78 | |
58 | |
52 | |
46 |
User | Count |
---|---|
170 | |
117 | |
63 | |
58 | |
51 |