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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
neoneo
Frequent Visitor

How to get summary table and filter by slicer

Help me please.

As below table

 

Animal    First Grade    Second Grade    Third Grade
Cat                   B                    A                    A
Rat                   A                    A                    A
Bird                   D                    C                    A
Cat                    E                    B                    B
Rat                    A                    B                    B
Bird                    B                    A                    A
Cat                    C                    B                    C
Rat                    C                    E                    D
Bird                    E                    D                    C

 

How can i create summary and line chart on page (and can use slicer to filter by Group )

Grade      First      Second      Third
A               2               3               4
B               2               3               2
C               2               1               2
D               1               1               1
E               2               1               0

 

Sorry, My Englis isn't that good.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@neoneo , You have to create a common grade table

Grade =distinct(union(all(Table[First Grade]),all(Table[Second Grade]),all(Table[Third Grade])))

Join with all three columns now will active, another one will be inactive //Assume active is First Grade

Count is

In table visual table grade from grade table and these measures

Count First Grade = count(Table[First Grade])
Count Second Grade = calculate(count(Table[Second Grade]), userelation(Table[Second Grade], grade[First Grade]))
Count Third Grade = calculate(count(Table[Third Grade]), userelation(Table[Third Grade], grade[First Grade]))

 

refer: https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

https://www.youtube.com/watch?v=e6Y-l_JtCq4

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
ryan_mayu
Super User
Super User

@neoneo 

is this what you want?

1.PNG

please see the attachment.

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




I want count grade from table data.

amitchandak
Super User
Super User

@neoneo , You have to create a common grade table

Grade =distinct(union(all(Table[First Grade]),all(Table[Second Grade]),all(Table[Third Grade])))

Join with all three columns now will active, another one will be inactive //Assume active is First Grade

Count is

In table visual table grade from grade table and these measures

Count First Grade = count(Table[First Grade])
Count Second Grade = calculate(count(Table[Second Grade]), userelation(Table[Second Grade], grade[First Grade]))
Count Third Grade = calculate(count(Table[Third Grade]), userelation(Table[Third Grade], grade[First Grade]))

 

refer: https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

https://www.youtube.com/watch?v=e6Y-l_JtCq4

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

Top Solution Authors