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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
joegie
New Member

how can i make a clustered column chart based on Top 5 data

Hi - Please can someone help me. I want to create a clustered table showing the Top 6 Root cause from my file, group based on date selected per month and also i wanted to see which root cause has the highest dollar paid as well. Please see attached graph i wanted to re-create in power bi. I have Root cause field, Audit date field which containes mm/dd/yy, dollar paid amount field.

 

Capture.JPG

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi @joegie ,

 

Create a measure as below:

Measure = 
VAR _rank=RANKX(FILTER(ALLSELECTED('Table'),'Table'[Month]=MAX('Table'[Month])),CALCULATE(SUM('Table'[dollar paid])),,DESC,Skip)
Return
IF(_rank<=5,MAX('Table'[dollar paid]),BLANK())

And you will see:

Screenshot 2020-11-02 170722.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

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

View solution in original post

4 REPLIES 4
v-kelly-msft
Community Support
Community Support

Hi @joegie ,

 

Create a measure as below:

Measure = 
VAR _rank=RANKX(FILTER(ALLSELECTED('Table'),'Table'[Month]=MAX('Table'[Month])),CALCULATE(SUM('Table'[dollar paid])),,DESC,Skip)
Return
IF(_rank<=5,MAX('Table'[dollar paid]),BLANK())

And you will see:

Screenshot 2020-11-02 170722.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

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

Ashish_Mathur
Super User
Super User

Hi,

Share some data to work with.  Also on the data that you share, show the expected result in a Table format.  Thereafter we can always show any visual that you want.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi - here is the sample table I'm working with. I don' t know how to inser the excel file so adding here as body of the message:

 

Root causeaudit datedollar paid

Reimbursement

1/1/2020100
Duplicate payment1/1/20200
Other insurance1/1/2020

90

Cost Containment1/2/202010
Investigating1/2/202089
Documentation1/2/202010
Documentation2/2/202020
Workflow2/2/202050
Documentation2/2/202079

 

Hi,

I still cannot relate your source data with your expected result.  Share a slightly larger dataset and on that dataset show your expected result in a Table format.  You may upload your file to Google Drive or a similar hosting service and share a download link here.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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