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.
Hello everyone,
Solved! Go to Solution.
@Pillsbury33
here's the solution
ZP Completed on Time - DIVIDE(CALCULATE(DISTINCTCOUNT(ZP[ID]), ZP[Idea Status] - "Completed", ZP[Time Completed] < 1), CALCULATE(DISTINCTCOUNT(ZP[ID]), ZP[Idea Status] - "Completed") )
Hi @Pillsbury33
your statement looks ok, but it maybe affected with row-context.
try also
ZPs completed on time = CALCULATE(DISTINCTCOUNT(ZP[ID]),ALL(ZP),ZP[completed on time]<0)
Thanks @az38
I tried this:
you also can try ALLSELECTED()
ZPs completed on time = CALCULATE(DISTINCTCOUNT(ZP[ID]),ALLSELECTED(ZP),ZP[completed on time]<0)
Thanks again, @az38
Allselected returned the same result. I'll share my workings once I've removed everything that doesn't need to be shared. To make sure I understood correctly as well: should my first statement have been enough to include zero and all negative numbers, rather than just the negative numbers i.e. those that are less than zero but do not equal zero?
Cheers, Pillsbury33.
< 0 means, it will be calculated IDs with negative value
<= 0 means, it will be calculated IDs with negative value and zero value
Hello @az38
I did <=0 but it returned the the same value as All. I would guess this is because the column includes only includes negative values, zeros and blanks. Does the statement need to exclude the blanks? If so, what would this look like?
Thanks again, this is much appreciated.
@Pillsbury33
here's the solution
ZP Completed on Time - DIVIDE(CALCULATE(DISTINCTCOUNT(ZP[ID]), ZP[Idea Status] - "Completed", ZP[Time Completed] < 1), CALCULATE(DISTINCTCOUNT(ZP[ID]), ZP[Idea Status] - "Completed") )
I think you should better know how to calculate it, with or without zeros 🙂
I still work in the dark and can only imagine how does your data looks like.
it would be much more effective if you show data example
it is about tow context. my statement gives you ALL [ID] where [completed on time]<0 all over the table. maybe you have additional row filtering.
show your data example to further analysis
User | Count |
---|---|
75 | |
70 | |
40 | |
30 | |
28 |
User | Count |
---|---|
104 | |
95 | |
51 | |
50 | |
46 |