Forum Discussion
PowerBI Report builder
- 4 months ago
Hi homelander123, Yeah sure.
EVALUATE FILTER(SELECTCOLUMNS('Contacts',"Date", 'Contacts'[Date], "Name", 'Contacts'[Name], "ContactEmail", 'Contacts'[Contact Email], "Number", 'Contacts'[Number]), 'Contacts'[Date] >= @StartDateParm && ''Contacts'[Date] <= @EndDateParm && 'Contacts'[Name] = @NameParm
You can use this way to keeping the dataset lean, and applying parameters directly and ensuring performance is better than pulling all the columns.
vigneshkumarcvk Can you please give me a sample syntax for the fields Date, Name, Contact email, and number.
Date and name are parameters as well
Hi homelander123, Yeah sure.
EVALUATE FILTER(SELECTCOLUMNS('Contacts',"Date", 'Contacts'[Date], "Name", 'Contacts'[Name], "ContactEmail", 'Contacts'[Contact Email], "Number", 'Contacts'[Number]), 'Contacts'[Date] >= @StartDateParm && ''Contacts'[Date] <= @EndDateParm && 'Contacts'[Name] = @NameParm
You can use this way to keeping the dataset lean, and applying parameters directly and ensuring performance is better than pulling all the columns.