Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
I have two columns containing data (in separate tables):
I have been able to retrieve the percentage value for the max percentage, but how do I go about doing the same for the actual amount of years based on the max percentage - using a measure and not a calculated column? Just to clarify, in this case I would like to have the text "0-3 years" in a measure.
I will be using the values in a dynamic text in a table so I will be using separate measures to try to achieve this.
Solved! Go to Solution.
You may try using TOPN.
https://community.powerbi.com/t5/Desktop/Return-another-column-based-on-condition/m-p/782140#M376699
You may try using TOPN.
https://community.powerbi.com/t5/Desktop/Return-another-column-based-on-condition/m-p/782140#M376699
| User | Count |
|---|---|
| 51 | |
| 38 | |
| 33 | |
| 22 | |
| 19 |
| User | Count |
|---|---|
| 136 | |
| 102 | |
| 58 | |
| 36 | |
| 35 |