Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Example table below. The Column C is the minimum across columns A and B for the same row. The final, evaluated number is the sum of all the values in COlumn C. I'm lost as to how I'd implement this simple calculation in powerbi. Any help will be greatly appreciated.
A | B | C = min (A,B) |
20 | 50 | 20 |
30 | 50 | 30 |
45 | 50 | 45 |
67 | 50 | 50 |
90 | 50 | 50 |
88 | 50 | 50 |
Sum of Col C | 245 |
Solved! Go to Solution.
@Anonymous , Try a new measure like
sumx(Table, if([A]>[B], [A], [B]))
Else create a new column and then have sum
C = if([A]>[B], [A], [B])
Thanks - it works perfectly. Much appreciated.
A follow up question, if I may - is there a way to create a data table like in excel with the 'B' values varying from say 25 to 200, and the resultant sumx(Table, if([A]>[B], [A], [B])) providing the output in an adjacent column?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |