Тёмный

Highlighting the minimum and maximum values in a Power BI matrix 

SQLBI
Подписаться 103 тыс.
Просмотров 27 тыс.
50% 1

This video shows how to use DAX and conditional formatting together to highlight the minimum and maximum values in a matrix in Power BI. Article and download: sql.bi/662096?aff=yt

Наука

Опубликовано:

 

3 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 66   
@hcedenop
@hcedenop 4 года назад
Nice and clean solution... not a heat map, but a simpler eye catching solution without having user to find out which green is greener...
@Ad4lon86
@Ad4lon86 4 года назад
Thank you Alberto for this and other videos, amazing content as always. I am just going through your DAX book and I'm learning at the speed of light! Much appreciated.
@aleksandarboshevski
@aleksandarboshevski 4 года назад
Great job @AlbertoFerrari, please continue with producing useful content like this.
@mehdihammadi6145
@mehdihammadi6145 3 года назад
Thank you 💖 for sharing *Alberto* . I just used it in one of my reports and it worked as a charm.
@JoseMorales-um8qw
@JoseMorales-um8qw 4 года назад
Thank you for sharing Alberto, this is a brilliant idea!
@leonardomendizabal1966
@leonardomendizabal1966 4 года назад
Excellent !!! Greetings from Mexico ! :)
@kkskhin7208
@kkskhin7208 Год назад
Smart Explanation as always, thank you so much for your valuable sharing.
@bentatlim
@bentatlim 2 года назад
Thank you very much for your amazing explanation 👍👍👍
@ajaysharma2061
@ajaysharma2061 4 года назад
Very helpful. Thank you so much.
@talytarosas9711
@talytarosas9711 3 года назад
Very useful. Thank you so much
@luisfelipecampos4776
@luisfelipecampos4776 3 года назад
Thanks a lot master Ferrari.
@gugoanx
@gugoanx 3 года назад
Amazing! Help me a lot
@AishaMumin-fr5bo
@AishaMumin-fr5bo 7 месяцев назад
You just saved me.
@usmanasad180
@usmanasad180 4 года назад
Thanks, boss, its help a lot
@aungkolatt6586
@aungkolatt6586 3 года назад
Thanks a lot Sir!
@martinlivingstone5824
@martinlivingstone5824 2 года назад
Thank you Alberto
@swarajyalakshmi8017
@swarajyalakshmi8017 2 года назад
Thank you
@Kmsbi
@Kmsbi 4 года назад
useful information
@jovianosilveira9357
@jovianosilveira9357 4 года назад
Simples e Fácil. Assim que tem que ser!
@wasalanisimudiyanse981
@wasalanisimudiyanse981 2 года назад
Hi Alberto, Thank you for the video. If I need to highlight the cell range ( Ex- Call Start time to end time) What would be the best solution?
@anjaliprabhu6696
@anjaliprabhu6696 Год назад
Hi, Your video content and quality is great compare to Pettaka Technologies Power BI videos.
@joaoformigo1764
@joaoformigo1764 3 года назад
Hello alberto! thank you for the vid amazing as always! What if I want to use this highlight of max and min on a column chart and I want it to work while i drilldown into it? If for example i have years since 1950-2020 and I have it displayed by bins of 10 years each. I managed to get the bins to highlight and the years aswell if i drilldown to the last level of the hierarchy but If I drilldown to the bin for example 1960 (that is 1960-1969) it doesn't highlight the highest and lowest in that drilldown Any tip? :)
@mshparber
@mshparber 4 года назад
Brilliant! Thank you! What if I have another column nested after Brand and I want to dynamically calculate depending if it is drilled... The SUMMARIZE is static...
@albertoferrari6893
@albertoferrari6893 4 года назад
It is, but by using ISINSCOPE you can compute the value in different ways depending on the level you are in.
@josuevergara218
@josuevergara218 3 года назад
Alberto a question, if he wanted to add the sales of only those two products the minimum and the maximum as that scenario could be solved ?
@ricardopinxt212
@ricardopinxt212 2 года назад
Superb as ever Alberto! 👍 Small side step. How would the code change as you want the min and max only for every column en not the entire matrix? So the Max/Min in Asia, Europe and North America.
@nikhil1888
@nikhil1888 Год назад
Did you find the solution for this?
@SQLBI
@SQLBI Год назад
Use ALLSELECTED( Product ) instead of ALLSELECTED(). See the notes at the end of the article at www.sqlbi.com/articles/highlighting-the-minimum-and-maximum-values-in-a-power-bi-matrix/
@arunkumarl5747
@arunkumarl5747 2 года назад
Hello Sir, Can we also find max and min values from 2 different tables?
@feo786
@feo786 4 года назад
Nice. Is it possible to perhaps apply something similar to a line chart where you want to make the minimum and maximum values stand out?
@albertoferrari6893
@albertoferrari6893 4 года назад
You need conditional formatting to control the visual, AFAIK you don't have such a property in charts... at least, as of now.
@sergiocaptuleio1088
@sergiocaptuleio1088 2 года назад
Show!!!!
@michaelmays9415
@michaelmays9415 4 года назад
Great video! Why do you need MAXX and MINX instead of MAX and MIN? Would either work?
@SQLBI
@SQLBI 4 года назад
Yes both work in this case.
@santoshf
@santoshf 3 года назад
Need Help!! I am trying to get max and min from each country any hints would be appreciated. Thank you.
@arttube13
@arttube13 4 года назад
Thank you for this interesting method, I am having trouble applying it to my scenario, which is as the following: My matrix is created using two columns from two different tables and the value is a measure, another issue is that I can't use "ALLSELECTED" since my report is filtered to show the last 30 days. Can you assist me :)
@SQLBI
@SQLBI 4 года назад
For these questions look at the comments area in the related article, there are more people who could answer. However, ALLSELECTED should work in your scenario.
@mohdmuzammil3059
@mohdmuzammil3059 3 года назад
Very useful what if i want to highlight min & max value for each respective continent columns pls respond
@nikhil1888
@nikhil1888 Год назад
Did you find the solution for this?
@SQLBI
@SQLBI Год назад
Use ALLSELECTED( Product ) instead of ALLSELECTED(). See the notes at the end of the article at www.sqlbi.com/articles/highlighting-the-minimum-and-maximum-values-in-a-power-bi-matrix/
@brunonard25
@brunonard25 2 года назад
Hello Alberto, do you have a solution to highlight the max value for each respective continent column?
@nikhil1888
@nikhil1888 Год назад
Did you find the solution for this?
@SQLBI
@SQLBI Год назад
Use ALLSELECTED( Product ) instead of ALLSELECTED(). See the notes at the end of the article at www.sqlbi.com/articles/highlighting-the-minimum-and-maximum-values-in-a-power-bi-matrix/
@sbn4862
@sbn4862 2 года назад
My PowerBI desctop Free version updated and i can't fined Condtional formating.Where removed this optional?
@rafaelbarbosa169
@rafaelbarbosa169 4 года назад
I select 2 rules in conditional is Igual 0 percent to find minimum value and select 100 percent to find the maximum value, I think this same solution, my question: What solution is more performatic?
@SQLBI
@SQLBI 4 года назад
The result is identical for this specific case. The technique shown in this video can be applied to more complex business logic, the DAX code of the measure that controls the highlight can be customized - for example, it could be based on the distribution of underlying data, like "highlight cells that have one single product making more than 50% of the entire brand".
@vinayanandks
@vinayanandks Год назад
Hi, How to get get min and max values in a month into a separate column and also its respective dates, if min and max values are same then date gives a conflict, how to make it take the latest date, could you pls help with formula
@mshparber
@mshparber Год назад
A question: I am summarizing (MINX, MAXX) BALANCES measure, not sales transactions amount. So, SUMMARIZE(Sales, 'Calendar'[Year-Month], 'Customers'[Customer]....) - misses the cases where in a certain month a customer didn't have a sale, but does have a Balance.... I feel I need to somehow create a CROSSJOIN between Year-Month, Customer and Product, but I am afraid of CROSSJOINS... Any suggestions?
@mshparber
@mshparber Год назад
I finally tried: CALCULATETABLE(ADDCOLUMNS(CROSSJOIN(VALUES('Calendar'[Year-Month]), VALUES('Customers'[Customer])...),"@Bal",[Balance), my_filters)... It is working, but I wonder if this is the optimal solution: CALCULATETABLE + ADDCOULUMNS + CROSSJOIN (VALUES (TableA[Column1]), VALUES (TableB[Column2]),...)...)...)? @SQLBI
@hamidsh4789
@hamidsh4789 3 года назад
unfortunately for me, instead of SUM measure used COUNT measure but didn`t work. Anyway thanks for the video.
@hamidsh4789
@hamidsh4789 2 года назад
I solved it. My problem was that instead of using COUNT measure I used COUNT directly in your mentioned code and it did not work. Thank you so much.
@AutodafeSynths
@AutodafeSynths 3 года назад
I was trying to do something similar, but I would need to highlight min and max for each single row of the matrix...
@SQLBI
@SQLBI 3 года назад
Change the ALLSELECTED condition to only include the items you want. For example, use ALLSELECTED ( 'Product'[Brand] ) instead of ALLSELECTED() in the sample file.
@AutodafeSynths
@AutodafeSynths 3 года назад
@@SQLBI Thanks a lot, looks like it worked, even if my report is a bit more complicated, I have a matrix with a "dynamic" measure that calculates costs in Euros or Euros/Hectares for different Cultivations and Operations (I am dealing with a large farming company)
@kerkoules
@kerkoules 2 года назад
@@AutodafeSynths @SQLBI I did replace ALLSELECTED () with ALLSELECTED ( 'Product'[Brand] ), but the result is not the expected one. All three columns (Asia+Europe+NA) are getting colored across the Product rows (Contoso +Tailspin Toys). What I am after is to treat each row independently, coloring the min and max values of each row and not the min and max of the entire matrix. Could you kindly advise? Thank you
@kerkoules
@kerkoules 2 года назад
@@SQLBI I did replace ALLSELECTED () with ALLSELECTED ( 'Product'[Brand] ), but the result is not the expected one. All three columns (Asia+Europe+NA) are getting colored across the Product rows (Contoso +Tailspin Toys). What I am after is to treat each row independently, coloring the min and max values of each row and not the min and max of the entire matrix. Could you kindly advise? Thank you
@nikhil1888
@nikhil1888 Год назад
@@kerkoules did you find the solution of this?
@huangdanny250
@huangdanny250 3 года назад
Why need to use the ALLselected Function in the Calculatable Function ?
@SQLBI
@SQLBI 3 года назад
Performance. This way the table variable is computed only once for all the cells of the visual, resulting in faster query execution time.
@huangdanny250
@huangdanny250 3 года назад
@@SQLBI Thanks for answering!!! so Allselected() is like fixing the table not to be filter to one cells ?
Далее
Distinguishing HASONEVALUE from ISINSCOPE
11:00
Просмотров 22 тыс.
Bidirectional relationships and ambiguity
14:02
Просмотров 99 тыс.
Propagating filters using TREATAS in DAX
19:18
Просмотров 43 тыс.
Blank row in DAX
12:55
Просмотров 44 тыс.
Writing a DAX query using TOPN
14:43
Просмотров 33 тыс.
Power BI Conditional formatting using Measures
7:44
Using OR conditions between slicers in DAX
22:43
Просмотров 31 тыс.
Best mobile of all time💥🗿 [Troll Face]
0:24
Просмотров 1,9 млн
iPhone перегрелся, что делать?!
1:01