AI in Dataflow: Machine Learning in Power BI
ServiceDr. Leila Etaati
AI and Data Platform MVP, Data Scientist
Leila EtaatiPh.D. AI and Data Platform MVP, Data Scientist, RADACAD
AI and Data Platform Microsoft MVP
Leila is First AI MVP in NZ and Australia
Speaker, Data Scientist, Trainer and MentorShe is an international speaker for more than 100 conference in NZ, AUS, Europe, USA, and Asia.
PhD with over 10 years experiences
Leila is a PH.D. in information system and has more than 10 years experiences in Data base, BI and AI
Leila Etaati
@Leila_Etaati
http://radacad.com/author/leila
Agenda AI in Data Flow
Cognitive Service with Power BI Service
AutoML in Power BI Service
Azure ML Studio Integration in Power BI Service
Do not have Premium but like to consume AI?
2015R in Power BI Report
2016R in Power
Query
2018Python in Power BI report and Power
Query
2019AI in Power BI Service
Writing R or Python in Power BI Desktop, or Create custom visuals,
Power BI for
Data Scientists
Power BI for
Developer
Consume Created models in Azure ML Studio, Cognitive
Service and Data bricks
Power BI for
Business People
Auto
Help Business Users understand their data
Machine Learning in Power BIGoal How?
Q&A
Help Business Users understand their data Quick Insights
Key Drivers
Clustering
Help Analysts prepare their data Forecasting
Cognitive Services
Automated ML
R Integration
Make it easy for Data Scientists and Analysts to collaborate Python Integration
Azure ML Integration
Cognitive Services in Power BI
Sentiment Analytics
to discover how a customer feel about
Products
Keyword Extraction
What is the main point of the document
Language Detection
Identify the language of the
comments
https://docs.microsoft.com/en-nz/azure/cognitive-services/text-analytics/language-support
What is Text AnalytisIn a customer experience context, text analytics means examining text that was written by, or about,
customers.
You find patterns and topics of interest, and then take practical action based on what you learn
They are Unstructured data
Business Users - Premium
Pre-Build AI
https://westus.dev.cognitive.microsoft.com/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395238
This Photo by Unknown Author is licensed under CC BY-NC-NDThis Photo by Unknown Author is licensed under CC BY-NC-ND
(text) => let
apikey = "APIKey",
endpoint =
"https://AustraliaEast.api.cognitive.microsoft.com/text/analytics/v2.0/languages",
jsontext = Text.FromBinary(Json.FromValue(Text.Start(Text.Trim(text), 5000))),
jsonbody = "{ documents: [ { language: ""en"", id: ""0"", text: " & jsontext & " } ] }",
bytesbody = Text.ToBinary(jsonbody),
headers = [#"Ocp-Apim-Subscription-Key" = apikey],
bytesresp = Web.Contents(endpoint, [Headers=headers, Content=bytesbody]),
jsonresp = Json.Document(bytesresp),
language = jsonresp[documents]{0}[detectedLanguages]{0}[name]
in language
Cognitive Service- Language
(text) => let
apikey = "APIKey",
endpoint =
"https://AustraliaEast.api.cognitive.microsoft.com/text/analytics/v2.0/sentiment",
jsontext = Text.FromBinary(Json.FromValue(Text.Start(Text.Trim(text), 5000))),
jsonbody = "{ documents: [ { language: ""en"", id: ""0"", text: " & jsontext & " } ] }",
bytesbody = Text.ToBinary(jsonbody),
headers = [#"Ocp-Apim-Subscription-Key" = apikey],
bytesresp = Web.Contents(endpoint, [Headers=headers, Content=bytesbody]),
jsonresp = Json.Document(bytesresp),
sentiment = jsonresp[documents]{0}[score]
in sentiment
Cognitive Service Text Analysis
(text) => let
apikey = "APIKey",
endpoint =
"https://AustraliaEast.api.cognitive.microsoft.com/text/analytics/v2.0/keyPhrases",
jsontext = Text.FromBinary(Json.FromValue(Text.Start(Text.Trim(text), 5000))),
jsonbody = "{ documents: [ { language: ""en"", id: ""0"", text: " & jsontext & " } ] }",
bytesbody = Text.ToBinary(jsonbody),
headers = [#"Ocp-Apim-Subscription-Key" = apikey],
bytesresp = Web.Contents(endpoint, [Headers=headers, Content=bytesbody]),
jsonresp = Json.Document(bytesresp),
keyphrases = Text.Lower(Text.Combine(jsonresp[documents]{0}[keyPhrases], ", "))
in keyphrases
Cognitive Service- Keyword Phrase
Reference
http://radacad.com/ai-in-dataflow-azure-ml-studio-integration-with-power-bi-services-part-3http://radacad.com/ai-in-dataflow-power-bi-webservice-auto-azure-ml-part2http://radacad.com/ai-in-dataflow-power-bi-webservice-cognitive-service-part1http://radacad.com/power-bi-and-azure-ml-make-them-work-with-power-queryhttp://radacad.com/cognitive-services-in-power-bi
Leila Etaati
http://radacad.com/author/leila