Rui Romano Power BI Hackstugait.pt/wp-content/uploads/2018/08/Rui-Romano-Power-BI...Session Overview...

Preview:

Citation preview

Power BI Hacks

Rui Romano

Rui.Romano@DevScope.net

https://ruiromanoblog.wordpress.com

@RuiRomano

Session Overview

• Power BI Hacks• Modeling

• Extensibility

• Automation

• Governance

• DevOps

This session is not• Intro to Power BI• Full of tips on DAX/M => sqlbi.com• Deep-Dive on anything☺

This session is• Fast-paced, full of demos• Learn useful techniques

Tip - Images as Base64

• Usefull for small images (ex: logo’s)

• Dont need to store images on a website

Tip – Use the Barcode Scanner

• Little effort, big impact

• IOS only • PowerApps

Tip – Calendar/Date table

• Generate your calendar table with M Script or DAX

• Use Relative *Period fields => Dynamic Filter Reports over Time

Learn more: link1

Tip – Measures as Dimension

• One dashboard for multiple measures

• Build Scorecards

• Reusability: YTD, LY,… over all the measures

• *Performance hit

Tip – Parameters

• Scenarios• PBIX Templates

• Change the values after Publish• Change the Database without Re-Publish

• Change the Query without Re-Publish

• Set the Type (don’t use “Any”)

• Change values on UI or REST API (PS)• Set-PBIDatasetParameters

Learn more: link1

Tip – Change defaults on Data Load

Tip – “Grow up” your PBIX

• Why?• Need more space (+1GB/file)

• More control => partitioning, perspectives, translations, scripting,…

• More DevOps => Source Control

• Merge multiple Power BI models into singular AS Model

• How?1. Using WebDesigner in Azure Portal

2. Using PowerBIPS.Tools - Convert-PowerBIToASTabular

Learn more: link1

Tip – Power BI Report Rebind

• After the conversion there could be hundred of existing reports• Created by BI Team or End-User

• How?• Power BI Desktop

• Remove all queries => Get-Data => Tabular (live)

• REST API + PowerBIPS

Learn more: link1, link2

Tip – Real-Time Session Voting

https://tinyurl.com/pbivotinghttps://bit.ly/2HVi5ej

Tip – Power BI *DevOps – REST API

• Create Multiple Workspaces from file system• Upload pbix automatically

• Sync between Workspaces: (ex: Dev => Prod)• Download DataSets & Publish

• Clone Reports, Dashboards,…

Learn more: link1

Tip – Export Power BI Reports from Workspaces

• Easily export all your PBIX• Backup?

• Governance?

Learn more: link1

Tip – Explore Power BI Desktop w/ Excel

• PBIDesktop has an Analysis Services Instance

• Discover the TCP Port using netstat, powershell, DaxStudio

• Connect with any OLAP client (Excel, SSMS, PowerBIDesktop…)

• Great for data validation at development time

Tip – Get Data from PowerBI.com

• Not Supported! But it works ☺

• Get the connection string from “Analyse in Excel”

• Remove the “ClaimsToken”

• Use “Get-Data” from OLEDB w/ DAX query

• Only works w/ Personal Gateway

Tip – Export Data from Power BI Desktop

• Export to CSV / SQL Server

• Very handy for one-time-only scenarios• ex: Data Science data wrangling

• *one-time-only scenarios

Learn more: link1

Tip – Dynamic Security

• Evaluate your scenario, probably the basic approach is enough

• Simple to manage• Versus standard security model with relationships

• Don’t work w/ DirectQuery

Standard Security Model Lookup Security Model

Users Table

DAX Expression in the Roles

PLEASE FILL IN THE

EVALUATION FORM.

YOUR OPINION IS

IMPORTANT!

AT THE ENTRANCE AFTER THE LAST SESSION OF THE DAY

#TUGABEER sponsored by

THANK YOU TO OUR SPONSORS

GOLD SPONSOR

TUGA BEER SPONSOR

SILVER SPONSOR

SWAG SPONSOR