The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello,
So i have a database and i've applied certain filters on it to get drill through table visuals.
i need index number for each row in the table, i was trying all day but without any success
the row counts can be from 0 to 6K cols
This is the best i can get
Current measure :
btw when i apply the same measure to another table (having 1000+ cols) this is the result :
Solved! Go to Solution.
Hi @dfour ,
You may try this measure.
RowNum =
CALCULATE (
COUNT ( 'Table'[Emp Number] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[Emp Number] <= MAX ( 'Table'[Emp Number] )
)
)
You can check more details from here.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @dfour ,
You may try this measure.
RowNum =
CALCULATE (
COUNT ( 'Table'[Emp Number] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[Emp Number] <= MAX ( 'Table'[Emp Number] )
)
)
You can check more details from here.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@dfour , try if index in power query can help
https://stackoverflow.com/questions/45715963/creating-an-index-column-for-power-bi
@amitchandak That will not work, because the table is just visual table with cols from different tables and results can be changed with filters
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
i tried countrows before with no success
The table takes filters from drill through and shows a visual table for employees with the filters applied
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
119 | |
86 | |
75 | |
55 | |
44 |
User | Count |
---|---|
136 | |
128 | |
78 | |
64 | |
63 |