The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi I need help to get unique serial number for the rows when I go to drillthrough page as shown in the image.If it retrieves 10 rec then serial number should be 1 to 10. If 5 records then 1 to 5 .I tried below DAX function but it is giving duplicate values because same vendor name,same facility.But still I need get unique numbers.How can I achieve this??
Below are the DAX I used:
1.Measure
Thanks..
Solved! Go to Solution.
If you try doing it with a dax measure then you get inconistent results depending on the filters.
Consider doing it in Power Query, so your reports will show a consistent serial number for the rows.
For example ...
Create some test data
Group By Vendor using the Operator = All Rows
Add a custom column
Table.AddIndexColumn([Count],"Index",1)
Expand the Serial Number column
Remove unneeded columns
Congratualations, you now have a serial number for each row that restarts from 1 for each Vendor
Please click thumbs up because I have tried to help.
Then click [accept solution] if it works.
Thank you !
Hi @csb ,
I hope the explaination provided, has addressed your query.
Since we didnt hear back, we would be closing this thread.
If you need any assistance, feel free to reach out again by creating a new post.
Thank you
Hi @csb ,
Just wanted to check if you got a chance to review the suggestions provided and whether that helped you resolve your query?
Hi @csb ,
Just wanted to check if you got a achance to review the suggestions provided and whether that helped you resolve your query?
Thank you @speedramps , @Greg_Deckler and @Ashish_Mathur for your insights to the query.
Hi,
This DAX pattern generates a serial number column
@csb This is a common problem with the ranking functions in DAX. You could investigate this solution for getting unique ranks: The Mythical DAX Index - Microsoft Fabric Community
If you try doing it with a dax measure then you get inconistent results depending on the filters.
Consider doing it in Power Query, so your reports will show a consistent serial number for the rows.
For example ...
Create some test data
Group By Vendor using the Operator = All Rows
Add a custom column
Table.AddIndexColumn([Count],"Index",1)
Expand the Serial Number column
Remove unneeded columns
Congratualations, you now have a serial number for each row that restarts from 1 for each Vendor
Please click thumbs up because I have tried to help.
Then click [accept solution] if it works.
Thank you !
User | Count |
---|---|
69 | |
64 | |
62 | |
55 | |
28 |
User | Count |
---|---|
203 | |
82 | |
65 | |
48 | |
38 |