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 All,
I have struck with one problem wherein i would require the result based on 2 conditions, i.e it should search for the minimum number from Rank column and corresponding NAME column it should give the RESULT (TARGET as RESULT) only for the first found row and make the others as 0 . I have attached the screensnip for the reference. Please advice.
Solved! Go to Solution.
You can create an index column and then create a calculate column using dax below:
Result =
VAR Min_Rank = CALCULATE(MIN('Table'[Rank]), ALLEXCEPT('Table', 'Table'[Name]))
VAR target = CALCULATE(MIN('Table'[Target]), FILTER('Table', 'Table'[Rank] = Min_Rank))
RETURN
IF('Table'[Target] = target && 'Table'[Index] = CALCULATE(MIN('Table'[Index]), ALLEXCEPT('Table', 'Table'[Name])), target, BLANK())
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You can create an index column and then create a calculate column using dax below:
Result =
VAR Min_Rank = CALCULATE(MIN('Table'[Rank]), ALLEXCEPT('Table', 'Table'[Name]))
VAR target = CALCULATE(MIN('Table'[Target]), FILTER('Table', 'Table'[Rank] = Min_Rank))
RETURN
IF('Table'[Target] = target && 'Table'[Index] = CALCULATE(MIN('Table'[Index]), ALLEXCEPT('Table', 'Table'[Name])), target, BLANK())
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
110 | |
94 | |
82 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |