Download presentation
Presentation is loading. Please wait.
Published byฤดี พันธุเมธา Modified over 5 years ago
1
Discovering the full power of parameters in Power BI
Andrey Nikolov Discovering the full power of parameters in Power BI
2
Sponsors Gold Sponsors Trusted Partner Innovation Sponsor PASS
Global Sponsor PASS Swag Sponsor
3
About me Software developer at Kodar Ltd.
Systems for efficient software solutions and optimizations Software developer at Kodar Ltd. 20 years of experience in developing database applications Working with SQL Server since version 7 MCSA: SQL Server 2012/2014 Leader of Plovdiv Power BI User Group facebook.com/andrew.nikoloff facebook.com/PlovdivPowerBI 3 |
4
What is “parameter”? Parameters are special variables, which value we can change, to influence the report results or behavior.
5
Various parameter types
“Normal” parameters – often used for filtering * With free-form values List of suggested values (static lookups) Suggested values from query (dynamic lookups) Connection-specific parameters * What-if parameters URL query string parameters
6
DEMO – using parameters for filtering data
Manage parameters in Power Query Editor (“Edit Queries” window) Define filters in column titles Use parameters with Report Templates (*.pbit) Use “Refresh Preview” to refresh dynamic lookups Use parameters in M code to: filter data change report’s logic
7
DEMO – using connection-specific parameters
Not supported by all data sources Convenient way to change data source In case of DR To switch Dev/Prod
8
DEMO – using What-If parameters
For testing What-If scenarios Interact with a slicer Creates a parameter and a measure Ref:
9
DEMO – using URL query string parameters
Pre-filters the report Doesn’t work with embedUrl, Publish to web, SharePoint Online, etc. Works with Secure Embedding Append ‘?filter=Table/Field op value’ to the URL Escape special chars in names with ‘_0xDDDD_’, where DDDD is 4 digits Unicode e.g. space is _0x0020_ and ‘Order Date’ becomes ‘Order_0x0020_Date’ (???) Enclose string values with single quotes (can’t escape single quotes?) Do not quote numbers and date/times e.g. ?filter=SalesOrderHeader/OrderDate ge Combine multiple filters with and (up to 10 conditions) Supported operators are eq, ne, ge, gt, le, lt, in in needs comma-separated list enclosed in parentheses e.g. ?filter=SalesOrderHeader/CustomerID in (1,2,3) Ref:
10
Sponsors Gold Sponsors Trusted Partner Innovation Sponsor PASS
Global Sponsor PASS Swag Sponsor
11
Q&A
12
Thank you!
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.