Forum Discussion
Data changing when adding legend
- 5 years ago
Hi Anonymous ,
Try the following formula:
Earliest_book = CALCULATE( MINX( ALLSELECTED('CALC NP''s (Uniek)'), 'CALC NP''s (Uniek)'[Datum boeking] ), GROUPBY( 'CALC NP''s (Uniek)', Datum[Week], 'CALC NP''s (Uniek)'[Patiëntnummer] ) )Count_Patiëntnummer = CALCULATE( DISTINCTCOUNT('CALC NP''s (Uniek)'[Patiëntnummer]), FILTER( ALLSELECTED('CALC NP''s (Uniek)'[Datum boeking]), 'CALC NP''s (Uniek)'[Datum boeking] = [Earliest_book] ) )If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
Try the following formula:
Earliest_book =
CALCULATE(
MINX(
ALLSELECTED('CALC NP''s (Uniek)'),
'CALC NP''s (Uniek)'[Datum boeking]
),
GROUPBY(
'CALC NP''s (Uniek)',
Datum[Week],
'CALC NP''s (Uniek)'[Patiëntnummer]
)
)Count_Patiëntnummer =
CALCULATE(
DISTINCTCOUNT('CALC NP''s (Uniek)'[Patiëntnummer]),
FILTER(
ALLSELECTED('CALC NP''s (Uniek)'[Datum boeking]),
'CALC NP''s (Uniek)'[Datum boeking] = [Earliest_book]
)
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-kkf-msft Thank you so much! You have been a great help. Really appreciate it!