Power FX - Basic Function Tutorial

Unlock the power of low-code with our video on 'basic function' in Power FX! Learn how to seamlessly create custom apps and utilize essential functions, like summing numbers dynamically. Discover tips to import Excel data and enhance your analytics toolkit. Dive in now and master the basics of Power Apps! #powerfx #intermediate #lowcode

  • 02:35
  • 175 views
00:00:06
we will analyze the basic functions of Powerfs and Power apps.
00:00:10
Power Apps is a low code application development platform
00:00:14
that allows anyone to easily create custom business applications.
00:00:19
Let's start with the structure of a function.
00:00:21
Like in Excel,
00:00:22
Power FX functions begin with their name,
00:00:25
followed by an opening parenthesis.
00:00:28
Each parameter is separated by a comma.
00:00:32
Let's take the sum function which adds 2 or more numbers.
00:00:35
Here we have 2 text boxes,
00:00:37
each containing numbers.
00:00:39
We will insert a 3rd box that will display the sum of the 1st 2.
00:00:43
In the formula bar,
00:00:45
first enter the name of the function
00:00:47
sum in our case,
00:00:48
followed by the opening parenthesis.
00:00:51
Next,
00:00:52
you need to enter the name of the first text box,
00:00:54
followed by a dot to access its properties.
00:00:58
The property we are interested in here is the text contained.
00:01:01
Then enter the second text box,
00:01:03
separating the two with a comma.
00:01:06
After that,
00:01:07
we can close the parenthesis.
00:01:09
Like in Excel,
00:01:10
this function is dynamic.
00:01:12
Any modification automatically updates the formula.
00:01:16
This operation can also be performed by a
00:01:18
simple addition without using the sum function.
00:01:21
To do this,
00:01:22
simply enter the name of each text box,
00:01:24
followed by the text property
00:01:26
and use the plus sign to add them.
00:01:30
Let's take a more concrete example.
00:01:33
We will import this Excel file into Power apps and display
00:01:36
the sum of the sales figures in a text box.
00:01:39
For the data import to work correctly,
00:01:41
you need to transform the Excel base into a table.
00:01:45
Once this is done,
00:01:46
you can close the workbook.
00:01:49
Now,
00:01:49
let's add this workbook to our application
00:01:51
by choosing the Excel Online Business connector.
00:01:56
Select the location of the workbook you want to import.
00:02:00
In this example,
00:02:01
we have placed the workbook in a OneDrive folder.
00:02:05
Select the workbook and the table you want to import.
00:02:10
Insert a text box and enter the sum function.
00:02:12
The parameters differ slightly.
00:02:15
You need to first enter the name of the table.
00:02:18
And then separated by a comma,
00:02:21
the name of the column you want to add.
00:02:24
You now know how to write a Power FX function.
00:02:27
However,
00:02:28
there's more.
00:02:29
We will explore other functions through examples in the following videos.

No elements match your search in this video....
Do another search or back to content !

 

00:00:05
Neste vídeo,
00:00:06
analisaremos as funções básicas das aplicações Powerfs e Power.
00:00:10
Power Apps é uma plataforma de desenvolvimento de aplicações low-code
00:00:14
que permite a qualquer pessoa criar facilmente aplicações empresariais personalizadas.
00:00:19
Vamos começar com a estrutura de uma função.
00:00:21
Tal como no Excel,
00:00:22
As funções Power FX começam com o seu nome,
00:00:25
seguido de um parêntese de abertura.
00:00:28
Cada parâmetro é separado por uma vírgula.
00:00:32
Vamos pegar a função soma que adiciona 2 ou mais números.
00:00:35
Aqui temos 2 caixas de texto,
00:00:37
cada um contendo números.
00:00:39
Iremos inserir uma 3ª caixa que exibirá a soma do 1º 2.
00:00:43
Na barra de fórmulas,
00:00:45
introduza primeiro o nome da função
00:00:47
somatório no nosso caso,
00:00:48
seguido do parêntese de abertura.
00:00:51
Seguinte,
00:00:52
tem de introduzir o nome da primeira caixa de texto,
00:00:54
seguido de um ponto para aceder às suas propriedades.
00:00:58
O imóvel que nos interessa aqui é o texto contido.
00:01:01
Em seguida, introduza a segunda caixa de texto,
00:01:03
separando os dois com uma vírgula.
00:01:06
Depois disso,
00:01:07
podemos fechar o parêntese.
00:01:09
Tal como no Excel,
00:01:10
esta função é dinâmica.
00:01:12
Qualquer modificação actualiza automaticamente a fórmula.
00:01:16
Esta operação também pode ser realizada por um
00:01:18
adição simples sem utilizar a função soma.
00:01:21
Para o fazer,
00:01:22
basta introduzir o nome de cada caixa de texto,
00:01:24
seguido da propriedade text
00:01:26
e use o sinal de mais para adicioná-los.
00:01:30
Vamos dar um exemplo mais concreto.
00:01:33
Vamos importar este ficheiro Excel para aplicações Power e mostrar
00:01:36
a soma dos valores das vendas numa caixa de texto.
00:01:39
Para que a importação de dados funcione correctamente,
00:01:41
precisa de transformar a base do Excel numa tabela.
00:01:45
Uma vez feito isso,
00:01:46
pode fechar a pasta de trabalho.
00:01:49
Agora,
00:01:49
vamos adicionar esta pasta de trabalho à nossa aplicação
00:01:51
escolhendo o conector Excel Online Business.
00:01:56
Seleccione a localização da pasta de trabalho que pretende importar.
00:02:00
Neste exemplo,
00:02:01
colocamos a pasta de trabalho numa pasta do OneDrive.
00:02:05
Seleccione a pasta de trabalho e a tabela que pretende importar.
00:02:10
Introduza uma caixa de texto e introduza a função soma.
00:02:12
Os parâmetros diferem ligeiramente.
00:02:15
Tem de introduzir primeiro o nome da tabela.
00:02:18
E depois separados por uma vírgula,
00:02:21
o nome da coluna que pretende adicionar.
00:02:24
Agora já sabe como escrever uma função Power FX.
00:02:27
No entanto,
00:02:28
há mais.
00:02:29
Exploraremos outras funções através de exemplos nos vídeos seguintes.

No elements match your search in this video....
Do another search or back to content !

 

Mandarine AI: CE QUI POURRAIT VOUS INTÉRESSER

Reminder

Show