Power BI · मराठी आवृत्ती
10.6 M मध्ये इतर ठिकाणी parameters
Parameter ही value असल्यामुळे condition, text label आणि supported native query arguments मध्ये वापरता येते.
// in a conditional column value
each if [City] = SelectedCity then "Focus city" else "Other"
// in a text
each "Report for " & SelectedCity
// as a native SQL argument (keep it simple and trusted – avoid user-typed text)
Value.NativeQuery(Source, "SELECT * FROM dbo.vw_MaharashtraOrders WHERE City = @city",
[city = SelectedCity])
पहिला example SelectedCity साठी Focus city flag देतो. दुसरा report label बनवतो. तिसरा SQL मध्ये @city argument वेगळा bind करतो; SQL text मध्ये user value concatenate करण्यापेक्षा हा योग्य pattern आहे. आवश्यक columns ची explicit list SELECT * पेक्षा चांगली.