Город МОСКОВСКИЙ
00:08:36

DAX - Using SWITCH() to change the background colour in a Power BI table

Аватар
Отчетность по инвестициям Excel
Просмотры:
26
Дата загрузки:
05.12.2023 22:50
Длительность:
00:08:36
Категория:
Лайфхаки

Описание

Using the DAX SWITCH() function to change the background colour of a cell in a Power BI table. In this video I provide an example of the cell colour changing based upon the number of dates to a project deadline.

In Power BI DAX SWITCH() works a bit like a multiple-choice question. The SWITCH statement is given a value (here, the number of days to the deadline) and it gives you back a result (here, the cell colour).

This example provides a basic template of a SWITCH function which a user can expand upon for more complex conditions than that shown.

Timings:
00:00 - 01:10 Introduction
01:10 - 02:30 Create Measure to calculated number of days to deadline
02:30 - 05:40 Create Measure with SWITCH() statement to change cell colours
05:40 - 07:30 Recap steps taken and talk through example
07:30 - 08:30 Apply Measure containing SWITCH to cells of table.

#powerbi #powerbicolours #DAXSWITCH #SWITCH() #SWITCHfunction #powerbitutorial #dax

Рекомендуемые видео