Gallery
Support Formation DAX
Share
Explore
Principes du DAX

icon picker
Saisir du DAX (Excel, Power BI)

Excel

A partir de Power Pivot.

Power BI

Mesure =
VAR NomVariable = CalculDAX
RETURN
CalculDAXAvecVariable
Aussi :
FirstDaySales =
SUMX (
'Product',
VAR FirstSale = CALCULATE ( MIN ( Sales[Order data] ) )
RETURN
CALCULATE (
[Sales Amount],
'Date'[Date]= FirstSale
)

DAX Studio

Cf.

Valeurs littérales

Scale = { 1, 1000, 1000000 }
image.png

Tables

Constructeur de table

1 colonne (nommée Value) :
EVALUATE { 1, 2, 3 }
Plusieurs colonnes (Value1, Value2....)
EVALUATE
{
(1.5, DATE(2017, 1, 1), CURRENCY(199.99), "A"),
(2.5, DATE(2017, 1, 2), CURRENCY(249.99), "B"),
(3.5, DATE(2017, 1, 3), CURRENCY(299.99), "C")
}

Table en mémoire

= DATATABLE("Name", STRING,
"Region", STRING
,{
{"Utilisateur 1","Nord"},
{"Utilisateur 2","Nord"},
{"Utilisateur 3","Sud"},
{"Utilisateur 4","Sud"},
{"Utilisateur 5","Nord"}
}
)

Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.