AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 31.01.2018, 00:13   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
stoneridgesoftware: How to Create Up and Down Arrows in Power BI Reports
Источник: https://stoneridgesoftware.com/how-t...er-bi-reports/
==============

A frequent request for dashboards and reports is the ability to display an up or down arrow based on a threshold. It would be nice if the KPI Scorecard in Power BI gave us this capability out of the box. The KPI Scorecard is a great visual, however, if you want just an arrow to display a trend, there is nothing out-of-the-box to provide that in Power BI. I came up with a simple solution to this problem. Read on as I explain how to create up and down arrows in Power BI Reports.

In this visual, you’ll notice that there is a green arrow pointing up. We’re going to recreate this arrow option in Power BI.


1) Create a new Column called “Arrows for Revenue Net Income” with the following logic. In my example, I’m taking the percent difference between this year vs. last year’s Revenue and determining whether or not it is on or off target. The SWITCH statement is similar to an IF statement but it is much cleaner to implement. You can create as many expressions within the SWITCH statement as required but I’ve only included two: one for an up arrow and one for a red down arrow.

Arrows for Revenue Net Income YTD = SWITCH( TRUE(), 'Sales'[Net Income % Diff] = .010,UNICHAR(9650), BLANK() ) </p>In order for us to get the arrows, we need to enter Unicode characters in the SWITCH statement. I wasn’t familiar with Unicode characters so I just went on Google to figure out which ones I needed.

2) Next, drag and drop the column onto the canvas and select the Table object in Power BI.

3) By default, the arrow is black rather than green as we required. There is no green up arrow in Unicode so we’ll need to change the font color of the arrow in Power BI to green.





And that’s how easy it is to create trending arrows in Power BI!



Источник: https://stoneridgesoftware.com/how-t...er-bi-reports/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
Теги
d365o, power bi

 

Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 22:49.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.