Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello ,
In Excel to count with condition under Excel it's possible to use a "matrix expression" .
For example with min , max , average , sum :
{=MIN(IF(column_A=field_on_colulm_A;column_to_find_min_value))}
{=MAX(IF(column_A=field_on_colulm_A;column_to_find_min_value))}
{=SUM(IF(column_A=field_on_colulm_A;column_to_find_min_value))}
{=AVERAGE(IF(column_A=field_on_colulm_A;column_to_find_min_value))}
Under DAX I can use this expression :
column_created= CALCULATE(sum(my_table[numeric_column]); ALL(my_table) ; my_table[condition_on_column] = "my_condition")
column_created= CALCULATE(max(my_table[numeric_column]); ALL(my_table) ; my_table[condition_on_column] = "my_condition")
column_created= CALCULATE(min(my_table[numeric_column]); ALL(my_table) ; my_table[condition_on_column] = "my_condition")
column_created= CALCULATE(average(my_table[numeric_column]); ALL(my_table) ; my_table[condition_on_column] = "my_condition")
On this case if the condition is on the value "ABC" , the mathematic processed is written on all cells of the board.
For example if the value is "DEF" , I looks for a solution to see the "sum/min/max/average" of "DEF" , not for "ABC" .
Thanks for the help.
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
13 | |
11 | |
9 | |
6 |