Forum Discussion
Anonymous
8 years agoNot applicable
Show customer data for selected months
Hi Team
I have a table with customer name, Month like 2018 07-Jul,Order id. Suppose I select Months as May, June and July(in the mentioned format 2018 07-Jul), I only want to show those customer name who have a order for all the selected months. Suppose customer Alex has order id's for May,June and July then show Alex and John has order in June and July then don't show John.
4 Replies
- Stachu
Community Champion
try putting this measure in the visual filter while filtering to TRUE
Measure = VAR SelectedPeriods = ALLSELECTED ( 'Table'[Month] ) VAR PeriodsPerCustomer = SUMMARIZE ( 'Table', 'Table'[Month], 'Table'[Customer] ) RETURN IF ( COUNTROWS ( SelectedPeriods ) = COUNTX (PeriodsPerCustomer, [Month] ), TRUE, FALSE )- AnonymousNot applicable
- AnonymousNot applicable
- GilbertQ
Super User
Hi there,
This could possibly be done. The challenge is understanding what is selected and to then go back 3 months based on what month you have selected.
Do you has some sample data and the expected result?