

Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Prepara i tuoi esami
Studia grazie alle numerose risorse presenti su Docsity
Prepara i tuoi esami con i documenti condivisi da studenti come te su Docsity
Trova i documenti specifici per gli esami della tua università
Preparati con lezioni e prove svolte basate sui programmi universitari!
Rispondi a reali domande d’esame e scopri la tua preparazione
Riassumi i tuoi documenti, fagli domande, convertili in quiz e mappe concettuali
Studia con prove svolte, tesine e consigli utili
Togliti ogni dubbio leggendo le risposte alle domande fatte da altri studenti come te
Esplora i documenti più scaricati per gli argomenti di studio più popolari
Ottieni i punti per scaricare
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Una panoramica delle diverse versioni di misure transactions in powerpivot, incluse transactions, transactions to bachelors, all transactions e all transactions bachelors. Inoltre, viene discusso come calcolare misure di vendite diverse, come sales, sales bachelors, all sales e all sales bachelors, utilizzando funzioni come sum, sumx, filter e related. Vengono inoltre forniti esercizi per illustrare l'utilizzo di queste funzioni.
Tipologia: Sbobinature
1 / 2
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!


Different versions of the measure Transactions in PowerPivot:
gone. SUMX exposes the table, so that we can apply on the table FILTER and ALL and allows us to make variations/ to manipulate the table.
- Sales to Bachelors: =SUMX(FILTER(Sales;RELATED(Customer[EnglishEducation])="Bachelors");Sales[UnitPrice]Sales[ OrderQuantity]) We give to SUMX as table the subset of the rows visible in the current context referring to the Bachelors customers and on this table it compute the expression UnitPriceOrderQuantity row by row. At the end, the function computes the sum of all the values and we have the total Sales to Bachelors. - ALL Sales: =SUMX(ALL(Sales),Sales[UnitPrice]Sales[OrderQuantity]) We give to SUMX a table that ignore the filters, thanks to the ALL function, and then we want it to compute the expression UnitPriceOrderQuantity on it. - ALL Sales Bachelors: =SUMX(FILTER(ALL(Sales);RELATED(Customer[EnglishEducation])=”Bachelors”);Sales[Un itPrice]Sales[OrderQuantity]) Exercise: Transactions without using COUNTROWS =SUMX(Sales; 1) With this code, every row will have 1 as value and at the end, summing all the values of each row, we will have the number of rows. Exercise: Sales only of the rows with price higher than 5 =SUMX(FILTER(Sales;Sales[UnitPrice]>5);Sales[UnitPrice]Sales[OrderQuantity])