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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
aiyosap
Helper II
Helper II

To show the top two departments having the highest number in each month

Dear Guru,

 

I need some help from you about question below.


Objective:

I would like the Power BI report to show the top two departments having the highest case count number in each month.

Power BI report to show like the one on the right:s

highest count in each month.PNG

 

 

 

 

table structure in excel:

TABLE - highest count in each month.PNG

 

 

 

 

 

 

 

 

I have a Dax object below but it gave me the report on the left (refer top figure) instead of the report on the right.

  • Count of CASES = countrows(values(IMEI[Case ID]))

Thank You.

Aiyosap

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@aiyosap , Create a rank

Rank = rankx(filter(allseleceted(Table[Month Year], Table[Department]), [Month year] =max([Month Year])),[Count of CASES],,desc,dense)

 

and use visual level filter <= 2

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@aiyosap , Create a rank

Rank = rankx(filter(allseleceted(Table[Month Year], Table[Department]), [Month year] =max([Month Year])),[Count of CASES],,desc,dense)

 

and use visual level filter <= 2

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors