Forum Discussion
Need help with parameter in SQL statement
- 6 years ago
I think these details already Greg_Deckler has provided. these are a couple of link for the same
https://docs.microsoft.com/en-us/power-query/power-query-query-parameters
https://community.powerbi.com/t5/Desktop/How-do-I-pass-parameters-to-my-SQL-statement/td-p/118716
Create a measure like this and add it to table or matrix along with [PointName],[PointID],[PointSliceID],[UTCDateTime]
new ActualValue =
calculate(sum(RawAnalog[ActualValue]),RawAnalog[UTCDateTime] >= date(year(today())month(today())-1,day(today())),
search("Search",RawAnalog[PointName] ,1,0)>0)
- Martin746 years agoHelper I
Thanks for your reply, maybe I am not clear enough. The meaning is to import only the data that is needed, so search must contains some characters from Pointname. When search contains '%United States%' only pointnames with United States must be imported. All this in a template. When I only use the IP address as a parameter all works fine, by adding the second parameter (Search) it shows up by making a connection but doesn't do the job well.