Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hello All -
I am attempting to use a calculated column to identify the duplicate rows with the highest value. I know how to do this in Excel, using the COUNTIFS function, however, I have been struggling to do this in DAX/Power BI.
My sample data looks like,
In another column, I would like to identify the rows that are the duplicates, based on Year.Wk, DriverName, with the highest value in Stops per Week.
The result would look as follows,
Currently, I have the following Calculated Column, which is providing the wrong answer;
Solved! Go to Solution.
Hi @MPICKETT,
Would this work?
Driver Choice = IF ( CALCULATE ( MAX ( 'Driver Relationship Table'[Stops per Week] ), ALLEXCEPT ( 'Driver Relationship Table', 'Driver Relationship Table'[Year.Wk], 'Driver Relationship Table'[DriverName] ) ) = 'Driver Relationship Table'[Stops per Week], 1, 0 )
Best,
Bekah
how is this done in excel?
Hi @MPICKETT,
Would this work?
Driver Choice = IF ( CALCULATE ( MAX ( 'Driver Relationship Table'[Stops per Week] ), ALLEXCEPT ( 'Driver Relationship Table', 'Driver Relationship Table'[Year.Wk], 'Driver Relationship Table'[DriverName] ) ) = 'Driver Relationship Table'[Stops per Week], 1, 0 )
Best,
Bekah
I knew I was overcomplicating things. That did the trick!
Thank you so much Bekah!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
86 | |
69 | |
66 | |
51 | |
32 |
User | Count |
---|---|
114 | |
99 | |
75 | |
65 | |
40 |