Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I'm pretty new but not completely unexperienced. Yet this problem drives me crazy. Given are two tables. One with some ProductionOrderPlan and one with the booked capacities on them from different employees. Since we dont tracks how many pieces each employee build each day I need to filter each Capacity Entry out where more than one employee was involved. In the given picture the Capacity Ledgers for Plan1 are good while the ones for Plan2 are bad. I tried to add a filter persistent disctinctcount on the Productionorderplan to filter the desired data. unfortunately i can't get it to work.
This Forum helped me a lot of times allready, but i could not find a solution to my question even though it feels quite common to me.
Solved! Go to Solution.
Hi @MariusStarke ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create a calculated column.
NoOfEmployees =
CALCULATE (
DISTINCTCOUNT ( 'CapacityLedgers'[Emyployeev] ),
FILTER (
'CapacityLedgers',
[ProdorderPlan] = EARLIER ( 'ProductionOrderPlan'[ProdorderPlan] )
)
)
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @MariusStarke ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create a calculated column.
NoOfEmployees =
CALCULATE (
DISTINCTCOUNT ( 'CapacityLedgers'[Emyployeev] ),
FILTER (
'CapacityLedgers',
[ProdorderPlan] = EARLIER ( 'ProductionOrderPlan'[ProdorderPlan] )
)
)
(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for your effort. It worked for me.
I'm sorry the question didn't met the requirements.
The desired output in this case would be a persistent calculated coloumn in the ProductionOrderPlan Table which says 'NoOfEmployees' which would give 1 for Plan1 and 3 for Plan2. I hope this carifies the question.
@MariusStarke
Please go through below link before posting something here
Going forward, please provide some input and desired output with proper explanation rather than a screenshot.
Regards
sanalytics
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |