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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi I have data which I will be filtering by Work Type. In this example A & B
What I want to do is add a Row No. Column which updates for different work types.
Examples below:-
Select A on slicer
It numbers the filtered rows 1 to 8
Select B on slicer
It numbers the filtered rows 1 to 5
Is there a way to do this in DAX?
Thank you for any help.
Solved! Go to Solution.
@PBE In theory you could create a measure like this:
Row No Measure =
VAR __Table = ALLSELECTED('Table')
VAR __ID = MAX( 'Table'[ID] )
VAR __Result = COUNTROWS( FILTER( __Table, [ID] <= __ID ) )
RETURN
__Result
@PBE In theory you could create a measure like this:
Row No Measure =
VAR __Table = ALLSELECTED('Table')
VAR __ID = MAX( 'Table'[ID] )
VAR __Result = COUNTROWS( FILTER( __Table, [ID] <= __ID ) )
RETURN
__Result
Thanks I'll give it a go
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!