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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Apple08
Helper IV
Helper IV

To group various data categories into slicer

Hi All

 

I have a table of data with various columns of data, e.g. Age, Name, Gender, Address etc.

 

I would like to extract some data into slicer selection for users to select when viewing data.  Please is there a way to extract data e.g. Age, Name, Gender from the table and I can use it in the slicer selection?  Many thanks.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Apple08 ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data.  

vtangjiemsft_0-1689231083560.png

(2) We can create a measure. 

 

count = COUNTROWS(FILTER(ALL('Table'),'Table'[year]=MAX('Table'[year])) )

 

(3) Then the result is as follows.

vtangjiemsft_1-1689231127798.png

If this is different from your expected result, please create a new post for a detailed description of your new problem and expected result.
To make the post more relevant, please mark the correct response to the original problem of the post as the solution, with thanks in advance.

 

Best Regards,

Neeko Tang

View solution in original post

3 REPLIES 3
Apple08
Helper IV
Helper IV

Many thanks Neeko.  Please I would like to count how many items in different columns based on years, please could you show me how to do it?

 

Many thanks.

Anonymous
Not applicable

Hi @Apple08 ,

 

According to your description, here are my steps you can follow as a solution.

(1) This is my test data.  

vtangjiemsft_0-1689231083560.png

(2) We can create a measure. 

 

count = COUNTROWS(FILTER(ALL('Table'),'Table'[year]=MAX('Table'[year])) )

 

(3) Then the result is as follows.

vtangjiemsft_1-1689231127798.png

If this is different from your expected result, please create a new post for a detailed description of your new problem and expected result.
To make the post more relevant, please mark the correct response to the original problem of the post as the solution, with thanks in advance.

 

Best Regards,

Neeko Tang

Anonymous
Not applicable

Hi @Apple08 ,

 

Please create a field parameter.

vtangjiemsft_0-1689130618671.pngvtangjiemsft_1-1689130639496.pngvtangjiemsft_2-1689130704695.png

Best Regards,

Neeko Tang

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

 

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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
Top Kudoed Authors