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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.