Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Jyo27
Helper II
Helper II

Based on filter selection need to show index numbers

Hi ,

 

Based on the filter selection , how to show index numbers . Suppose for category A it should show index number starting from 1 to 5 , for category B show satrting from 1 to 5 and so on .

Filter/slicer:

Category 
A
B
C

 

ProductsCategoryINDEX 
 A1
 A2
 A3
 A4
 A5
 B1
 B2
 B3
 B4
 B5
 c1
 c2
1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Jyo27 

 

You can try the following methods.

Measure = IF(SELECTEDVALUE(Slicer[Category])=SELECTEDVALUE('Table'[ProductsCategory]),1,0)

vzhangti_0-1689557935969.png

vzhangti_1-1689557986676.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @Jyo27 

 

You can try the following methods.

Measure = IF(SELECTEDVALUE(Slicer[Category])=SELECTEDVALUE('Table'[ProductsCategory]),1,0)

vzhangti_0-1689557935969.png

vzhangti_1-1689557986676.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Jyo27
Helper II
Helper II

Could anyone please help with this issue ?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors