Highlighting the minimum and maximum values in a Power BI matrix

  Рет қаралды 28,040

SQLBI

SQLBI

Күн бұрын

Пікірлер: 69
@WesleyYappy-n1m
@WesleyYappy-n1m 2 ай бұрын
2:16 `=ALLSELECTED` is used to restore the filter context for the current visual while excluding other filters. The filter context in this case is based on the calendar year, and we want to calculate the `MINX` and `MAXX` values for the year currently visible, rather than for all three years.
@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...
@mehdihammadi6145
@mehdihammadi6145 3 жыл бұрын
Thank you 💖 for sharing *Alberto* . I just used it in one of my reports and it worked as a charm.
@aleksandarboshevski
@aleksandarboshevski 4 жыл бұрын
Great job @AlbertoFerrari, please continue with producing useful content like this.
@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.
@kkskhin7208
@kkskhin7208 2 жыл бұрын
Smart Explanation as always, thank you so much for your valuable sharing.
@bentatlim
@bentatlim 2 жыл бұрын
Thank you very much for your amazing explanation 👍👍👍
@JoseMorales-um8qw
@JoseMorales-um8qw 4 жыл бұрын
Thank you for sharing Alberto, this is a brilliant idea!
@leonardomendizabal1966
@leonardomendizabal1966 4 жыл бұрын
Excellent !!! Greetings from Mexico ! :)
@ricardopinxt212
@ricardopinxt212 3 жыл бұрын
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 2 жыл бұрын
Did you find the solution for this?
@SQLBI
@SQLBI 2 жыл бұрын
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/
@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 ?
@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?
@talytarosas9711
@talytarosas9711 3 жыл бұрын
Very useful. Thank you so much
@MikheiliGubelidze
@MikheiliGubelidze Ай бұрын
hello is it possible to formatting certain Row field in Matrix Visuals (For example : if i have category and product fields and i want to format just food category Row )
@ajaysharma2061
@ajaysharma2061 4 жыл бұрын
Very helpful. Thank you so much.
@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.
@joaoformigo1764
@joaoformigo1764 4 жыл бұрын
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? :)
@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.
@luisfelipecampos4776
@luisfelipecampos4776 3 жыл бұрын
Thanks a lot master Ferrari.
@mshparber
@mshparber 2 жыл бұрын
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 2 жыл бұрын
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
@sbn4862
@sbn4862 2 жыл бұрын
My PowerBI desctop Free version updated and i can't fined Condtional formating.Where removed this optional?
@arunkumarl5747
@arunkumarl5747 2 жыл бұрын
Hello Sir, Can we also find max and min values from 2 different tables?
@mohdmuzammil3059
@mohdmuzammil3059 4 жыл бұрын
Very useful what if i want to highlight min & max value for each respective continent columns pls respond
@nikhil1888
@nikhil1888 2 жыл бұрын
Did you find the solution for this?
@SQLBI
@SQLBI 2 жыл бұрын
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/
@gugoanx
@gugoanx 3 жыл бұрын
Amazing! Help me a lot
@usmanasad180
@usmanasad180 4 жыл бұрын
Thanks, boss, its help a lot
@vinayanandks
@vinayanandks 2 жыл бұрын
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
@brunonard25
@brunonard25 3 жыл бұрын
Hello Alberto, do you have a solution to highlight the max value for each respective continent column?
@nikhil1888
@nikhil1888 2 жыл бұрын
Did you find the solution for this?
@SQLBI
@SQLBI 2 жыл бұрын
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/
@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.
@martinlivingstone5824
@martinlivingstone5824 3 жыл бұрын
Thank you Alberto
@AishaMumin-fr5bo
@AishaMumin-fr5bo Жыл бұрын
You just saved me.
@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 2 жыл бұрын
@@kerkoules did you find the solution of this?
@anjaliprabhu6696
@anjaliprabhu6696 2 жыл бұрын
Hi, Your video content and quality is great compare to Pettaka Technologies Power BI videos.
@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.
@aungkolatt6586
@aungkolatt6586 4 жыл бұрын
Thanks a lot Sir!
@huangdanny250
@huangdanny250 4 жыл бұрын
Why need to use the ALLselected Function in the Calculatable Function ?
@SQLBI
@SQLBI 4 жыл бұрын
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 4 жыл бұрын
@@SQLBI Thanks for answering!!! so Allselected() is like fixing the table not to be filter to one cells ?
@Kmsbi
@Kmsbi 4 жыл бұрын
useful information
@jovianosilveira9357
@jovianosilveira9357 4 жыл бұрын
Simples e Fácil. Assim que tem que ser!
@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".
@swarajyalakshmi8017
@swarajyalakshmi8017 2 жыл бұрын
Thank you
@hamidsh4789
@hamidsh4789 3 жыл бұрын
unfortunately for me, instead of SUM measure used COUNT measure but didn`t work. Anyway thanks for the video.
@hamidsh4789
@hamidsh4789 3 жыл бұрын
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.
@sergiocaptuleio1088
@sergiocaptuleio1088 2 жыл бұрын
Show!!!!
Distinguishing HASONEVALUE from ISINSCOPE
11:01
SQLBI
Рет қаралды 23 М.
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН
Хаги Ваги говорит разными голосами
0:22
Фани Хани
Рет қаралды 2,2 МЛН
Power BI Conditional formatting using Measures
7:44
Access Analytic
Рет қаралды 14 М.
How to fix Incorrect Totals in Power BI
14:44
Goodly
Рет қаралды 62 М.
Highlight MAX Value in a Chart or Matrix / Table Visual
7:57
HIGHLIGHTING DATAPOINTS in Power BI
12:38
How to Power BI
Рет қаралды 44 М.
Optimizing SUMMARIZE by using ADDCOLUMNS - Unplugged #40
14:31
How to set up and use Calculation Groups in DAX | Power BI
12:36
Solving errors in CALCULATE filter arguments
30:55
SQLBI
Рет қаралды 31 М.
Understanding LOOKUPVALUE
8:36
SQLBI
Рет қаралды 8 М.
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН