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! Get ahead of the game and start preparing now! Learn more
Hi guys,
I have been really struggling with this simple looking task. Here what I want to do is create a ratio column that equal each value in the Equity column divided by the equity value that associate with the SMALLEST value in Index column.
In other word, I want to create a (Ratio) column that equal values in the Equity column divided by the first row value of the Equity column.
For example my data set right now: (note that M Equity and M Equity ratio are custom Measures)
My desire outcome should be:
| Index | M Equity | M Equity Ratio |
| 40 | 754665 | 1.0000 |
| 41 | 741742 | 0.9829 |
| 42 | 734340 | 0.9731 |
| 43 | 752745 | 0.9975 |
| 44 | 714297 | 0.9465 |
| 45 | 723576 | 0.9588 |
I should also note that this data table above can be filter by some date slicer, so the index value might change.
Thank you so much in advance.
Solved! Go to Solution.
Hi, @youngmoneyduke
According to your description, I think you can create a measure to calculate the desired result.
Like this:
M Equity Ratio =
VAR a =
CALCULATE ( MIN ( 'Table 2'[Index] ), ALLSELECTED ( 'Table 2' ) )
VAR b =
CALCULATE ( [M Equity], 'Table 2'[Index] = a )
RETURN
DIVIDE ( [M Equity], b )
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much Janey, your DAX code solve the problem that has been on my plate for a long time! Your code almost provide me the perfect answer. I would add another ALLSELECTED to var b in your formular for the complete answer as follow, which work perfect for me:
Hi, @youngmoneyduke
According to your description, I think you can create a measure to calculate the desired result.
Like this:
M Equity Ratio =
VAR a =
CALCULATE ( MIN ( 'Table 2'[Index] ), ALLSELECTED ( 'Table 2' ) )
VAR b =
CALCULATE ( [M Equity], 'Table 2'[Index] = a )
RETURN
DIVIDE ( [M Equity], b )
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much Janey, your DAX code solve the problem that has been on my plate for a long time! Your code almost provide me the perfect answer. I would add another ALLSELECTED to var b in your formular for the complete answer as follow, which work perfect for me:
@youngmoneyduke index is a measure or a column?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi @parry2k
The index column is a column not a measure. It is originally not in my csv file, but I use Power Query to add that column to the table.
Thanks in advance!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 43 | |
| 41 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 188 | |
| 118 | |
| 96 | |
| 64 | |
| 45 |