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,
I have below data, I would like to create a calculated column (Rank) to flag only one record with 1 for a supplier that have multiple lines with the same date.
for example, supplier 12345 has 9 records, I want to flag only one record with 1.
Can you please help.
Solved! Go to Solution.
Hi @sabd80
You can achieve this by creating an index column, Hope the below pattern fullfuils your requirement
P.S. calculated columns can degrade your report performance.
If my answer fulfills your requirement then please mark my post as solution.
Thanks
Tharun
Hi @sabd80
You can achieve this by creating an index column, Hope the below pattern fullfuils your requirement
P.S. calculated columns can degrade your report performance.
If my answer fulfills your requirement then please mark my post as solution.
Thanks
Tharun
@Ahmedx , Thanks for your solution.
I need the other records, so I can't remove them, plus I have a huge data all these transformation will affect the performance of the report.
to do this remove the last two steps
and then you will be able to work with the data and filter it using DAX
@sabd80 , You create a measure using new rownumber function
ROWNUMBER(ALLSELECTED(Table[supplier id], Table[Date]),ORDERBY([Date],DESC),LAST,partitionBy(Table[supplier id]) )
Power BI - New DAX Function: Rownumber- https://www.youtube.com/watch?v=yS9-IQjUDwg&list=PLPaNVDMhUXGYo50Ajmr4SgSV9HIQLxc8L&index=1
this one is not working, it return 1 for all the 9 records.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |