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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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