Sunteți pe pagina 1din 4

DAX QUIZ

1. What does this button on the formula bar do? 

tick mark..  

Validates and enters the measure into the model. 

2. What always surrounds a column name in a DAX formula? 

Brackets []. 

3. What does a function always reference? 

A table and a column. 

4. Can a formula contain more than one function? 

Yes. A formula can contain up to 64 nested functions. 

5. What category of functions would you use to concatenate two text strings into one 
string? 

​Text functions​. 

6. What are the two types of context? 

Row context and filter context. 


 

7. What is filter context? 

One or more filters in a calculation that determines a single value. 

8. What is row context? 

The current row. 

What are some of differences in data modeling between Power BI Desktop and
Power Pivot for Excel?
Ans: ​Here are some of the differences: 
● Power BI Desktop supports bi-directional cross filtering relationships, security,
calculated tables, and Direct Query options. 
● Power Pivot for Excel has single direction (one to many) relationships, calculated
columns only, and supports import mode only. Security roles cannot be defined
in Power Pivot for Excel. 

The main engine behind power pivot is the xVelocity in-memory analytics engine. It can
handle large amount of data because it stores data in columnar databases, and
in memory analytics which results in faster processing of data as it loads all data
to RAM memory. 

=​SWITCH​([Month], ​1​, ​"January"​, 2 ​ ​, ​"February"​, ​3​, ​"March"​, ​4,


​ ​"April"​ , 5
​ ​, ​"May"​, ​6​,
"June"​, ​7​, ​"July"​, 8
​ ​, ​"August"​ , ​9,​ ​"September"​, ​10​, ​"October"​, ​11​,
"November"​, ​12​, ​"December"​ , ​"Unknown month number"​ ) 

http://blog.pragmaticworks.com/power-bi-custom-visuals-route-map

https://www.c-sharpcorner.com/article/learn-about-power-bi-route-map-visual/
select C.table_name,

c.column_name

from INFORMATION_SCHEMA.COLUMNS C

inner join

( select column_name

from INFORMATION_SCHEMA.COLUMNS

GROUP BY COLUMN_NAME

HAVING COUNT(*)>1) dupes

ON dupes.COLUMN_NAME=C.COLUMN_NAME

https://docs.microsoft.com/en-us/power-bi/service-admin-portal

DESKTOP-17SR5M8\SQLEXPRESS

AdventureWorksDW2017

https://publicholiday.co.nz/nz-public-holidays-2018.html

weeknumber:

CONCATENATE("Week ",RIGHT(CONCATENATE("0",WEEKNUM([Send Date])),2))

Month::

=CONCATENATE(CONCATENATE(FORMAT([Send Date],"MM")," "),FORMAT([Send Date],"MMM"))


Quarter::

CONCATENATE("Q",ROUNDUP(MONTH([Date])/3,0))

year::

FORMAT([Send Date],"YYYY")

running totals::

CALCULATE(sales,FILTER(ALL(Date),

DATE>MAX(date)-30 && Date<= max(date)))

S-ar putea să vă placă și