Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello everybody!
I need to calculate the number of rows where the max row of column "State" has the value "Mount" in column "Process".
So, the table has the following structure
Order | Date | State | Process |
100 | 01.01.2019 | 50 | Drilling |
100 | 01.01.2019 | 60 | Mount |
My actual approach is the following:
=CALCULATE(COUNTROWS(table1);FILTER(table1;table1[Process]="Mount");FILTER(table1;table1[State]=....
Hi @joshua1990
try a measure
Measure =
var _maxState = calculate(MAX('Table'[State]);ALL('Table'[State]))
RETURN
CALCULATE(COUNTROWS('Table');ALL('Table');'Table'[State]=_maxState;'Table'[Process]="Mount")
do not hesitate to give a kudo to useful posts and mark solutions as solution
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
42 | |
23 | |
21 | |
15 | |
15 |
User | Count |
---|---|
45 | |
31 | |
30 | |
18 | |
17 |