[MUSIC].
>> Module 2, Part 2.
Power BI Embedded Analytics.
Hello, I'm Peter Myers the course developer.
>> I'm Adam Saxton.
I am based in Houston, Texas,
and I'm a Principal Program Manager
on the Power BI, Customer Advisory Team (CAT).
This is a part of the Power BI
product team where we work with
large enterprise customers to help with adoption,
roadmap, and all of that.
I've been working with Power BI
since before it was Power BI.
>> Well, Adam, the students have just been introduced
to Power BI embedded analytics.
We've covered off on the high level "what we can do."
But I think it's time they see potentially what
they can do. What can you show us?
>> I've got an awesome demo for you...
Now what I want to show you is what
Power BI embedded can do for you.
This is your Power BI reports
embedded into an actual application.
Let's log into the application and
actually see what's going on.
I'm going to first login.
You will see here on the Contoso Sales Demo embedded app,
there's a couple of things right off the bat.
I can login as a salesperson or sales manager.
Down below, you're going to see
some awesome links to help you in your developer journey.
Down below you'll see the
"Explore our Playground", that'll take you to
the Power BI Embedded
Playground where you can actually go try some things,
get examples, things of that nature.
You can also get the source code for this application.
It's out on GitHub.
You'll see that link on the bottom as well.
I'm sure it's in your notes
somewhere to go get that information.
If you want to actually dig into the code of
this specific application that's available to you.
First, let's log in as a salesperson.
I'm going to login as June Smith.
And when I go in, log in,
it's going to actually take me into the application
and I'm going to immediately see some information.
These are data points as part of my sales data.
I can see lead counts,
opportunity counts, actual revenues, so on and so forth.
The beautiful thing about this,
these are Power BI visuals.
I can select and interact.
When I do that, the visuals actually
filter along with them, which is amazing.
I can do that, and select slice and dice,
all the power of Power BI,
right inside of my application.
We also see a bunch of tabs up above.
One thing I'm going to do here real quick is I'm
going to personalize the home screen.
Because maybe as an end user of this application,
I don't maybe need to see all of this,
so that's not what I want to see first out of the gate.
So what I can do is I can just...
let's hide these first four visuals.
Then I notice I'm not using my space wisely, so I
can come in and let's just change how the visuals look.
I can do this from a code perspective using
Power BI Embedded and the APIs that are available.
So I can make this a holistic application
that really looks amazing.
Then also, I can integrate
Q&A as part of this down below, we'll just see,
I'm just going to click on one so we can actually
see the data that's associated with it.
I can ask questions of
my data as part of this application.
The other thing that's going to be really cool
here is this is an application.
So I can do whatever
I want to do from a code perspective.
I'm going to say, let me change my color theme.
I'm going to change it to dark.
The thing you will notice are the visuals
as part of the embedded Power BI elements.
They change the theme
along with the theme of the application.
I can bring that together from a Power BI
visual perspective through theming and making
a consistent look and feel between
my application and the Power BI reports.
That is bananas!
Let's go take a look at leads.
We're just going across here.
Let me go ahead and we'll change
that color theme back to light.
Again, just seamless
consistency between the application
and my Power BI elements.
And again here I can slice and dice and my elements will
change as I go and interact with visuals.
We can see items going up and down.
Everything's great. We have
different visuals that are part of this.
One thing we'll see down
here is there's a table with leads.
You also see this "Add New Lead" item.
I can click on "Add New Lead" and I can
actually enter data as part of the application.
Again, it's an application.
I can enter this data and then that can be
reflected in the table itself when I do that.
The other thing I can do are
the items that are in the table.
You'll see here, "Edit Lead".
That's not a normal thing.
From a Power BI table perspective
through Power BI Embedded APIs,
I can actually inject
context menu items to
make that seamless application look and feel.
No when I click on that "Edit Lead,"
it actually brings up a form from the application that's
just a JavaScript event hook. It's just code.
I can do whatever I want from a code perspective.
Also, what I can do here is I can take full advantage
of the normal Power BI elements like drill through.
Let's go ahead and drill into account details.
Then here we will see
just the different information
that's part of this account detail.
Amazing! Let's go to opportunities.
See what we've got here. Again, just Power BI visuals.
I can slice and dice. If I select an item in my flow here,
we'll actually see items reflected up above.
We can see those different items as I slice and dice.
Then let's go over to Accounts.
Again, just similar elements here,
different Power BI visuals.
I can actually go through and interact with these items,
gain more insights based on
how I want to look through the data.
Again, slicing and dicing everything
changes. What I would
expect to see from a Power BI visual perspective.
If we go to My Activities,
we can just see the different activities and
different views that are a part of this.
Again, slicing and dicing,
just all part of the application.
Here let's go in and log out and let's
switch over to a different view.
We're going to go to the sales manager.
I'm going to log in as Donna Paul,
and we're going to log in.
Now the sales manager has a
different look and feel like and
these are just embedded elements
as part of the Power BI report,
again, I can slice and dice.
Everything works great.
We can go to the Sellers page.
Go up and down. We can see open activities.
We can see closed opportunities.
See top 10, bottom 10,
just slicing and dicing as I normally would.
You're hearing a theme here.
You're hearing a theme.
We can go through and see June Smith.
I can go in, we can go into
Account Details for June Smith.
Drill through capabilities.
We can see these items as part of June Smith.
We go to Accounts.
We see accounts here,
all of the accounts that are part
of my sales application.
Again, slicing and dicing if I want to,
I can also come in here again,
drill through into those account details if I would like.
Just seamless interaction as part
of my application and Power BI working together.
If I go to Analytics,
there's some interesting things here I can do as well.
One thing I can do,
I've got my visuals the way I want them to look.
Maybe I want to filter and slice certain items here.
Let's go to this item.
We can see the particular look of my decomp tree.
Maybe when I've slice and dice.
I want to say look, I want to capture
this view so I can actually capture
this from the application perspective
we're calling it My Views.
Where we're saying it's a view,
this is really, from a Power BI perspective,
this is a bookmark.
We're saving a personal bookmark as
part of this report, and then
those items will be available here that I can go
back and take a look at those items.
Again, estimated revenue,
I could go to leads identified, so on and so forth.
It'll go back through and pick those given items.
The other thing I can do is with
this view there, I can go to capture view.
I can say export this to a file
and let's just export it to a PDF.
Again, hooking into
those APIs from a Power BI perspective.
It's bananas! Moving on...
That'll download when it's ready.
We can see a couple other items
here from an analytics perspective.
We can see some forecasting information.
I already pointed out the decomp tree,
that's part of this.
Then we'll also see the key influencers visual.
Again, these AI visuals of Power BI
or integrated directly into my application.
I can take full advantage of those items.
We can go and see, okay,
what are the different things
that affect given opportunities?
It will go through as I interact with that visual.
Everything I would expect from a Power BI perspective is
available inside of Power BI Embedded.
And I can make that a part of my application.