From the course: Advanced Power BI: DAX Language, Formulas, and Calculations
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
IF DAX function for conditional formulas - Power BI Tutorial
From the course: Advanced Power BI: DAX Language, Formulas, and Calculations
IF DAX function for conditional formulas
- [Instructor] The IF tags function lets us write conditional formulas much like we do in other languages and applications, including Excel. There are three parameters in the IF function. The first is the condition we're testing for. The second is the result the formula returns if the condition in the first parameter is true. The third and last optional parameter is the alternative result the formula returns if the condition in the same first parameter is not true. It's important to note that when we're creating DAX measures using the IF function the condition and the results must match the type of DAX formula we're creating. For example, if we're creating a measure, the condition must reference a measure and both the result and alternative result must be DAX measures as well. In Power BI, let's set up a conditional measure to determine the selected loan duration in conjunction with the selected value function. But…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
SELECTEDVALUE DAX function6m 22s
-
(Locked)
IF DAX function for conditional formulas6m 46s
-
(Locked)
EOMONTH DAX function4m 49s
-
(Locked)
DATEDIFF DAX function4m 34s
-
(Locked)
BLANK and ISBLANK DAX functions6m 33s
-
(Locked)
Filtering between tables5m 10s
-
(Locked)
DAX acrobatics6m 18s
-
(Locked)
GENERATE and ROW DAX functions with calculated dates tables7m 43s
-
(Locked)
DATESBETWEEN DAX function4m 1s
-
(Locked)
DATEADD DAX function4m
-
(Locked)
MTD, QTD, and YTD date DAX functions4m 1s
-
(Locked)
DAX quick measures6m 22s
-
(Locked)
Power BI summarized view5m 43s
-
(Locked)
Challenge: DAX time intelligence modeling27s
-
(Locked)
Solution: DAX time intelligence modeling3m 32s
-
-