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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
manoj_0911
Advocate V
Advocate V

Creating a Dynamic Top 10 Bar Chart with Metric Value and Queue Name Fields

Hi Power BI Community,

 

I'm currently working on a project where I need to create a bar chart in Power BI that dynamically changes based on user-selected metric names. In addition, the chart should display the top 10 queue names based on the selected metric value.

 

Here's what I'm trying to accomplish:

1. I have a table of metrics such as Offered, Answered, AHT, ASA, etc.
2. Users should be able to select a metric from a dropdown or slicer.
3. Based on their selection, the bar chart should dynamically display the top 10 queue names with the corresponding metric values.
4. Metric values can include whole numbers, durations in HH:MM:SS format, percentages, etc.
5. In Tableau, I used the Metric Value field in the columns and the Queue Name field in the rows.
---------------------------------------------------------

Tableau Screenshots

Screenshot select measures.pngScreenshot top 10 queue.pngScreenshot 2024-02-20 205224.png
Tableau Calculation

 

METRIC VALUE = CASE [SELECT MEASURE]
WHEN 'OFFERED' THEN SUM([Offered])
WHEN 'ANSWERED' THEN SUM([Answered])
WHEN 'ABANDONED' THEN SUM([Abandoned])
WHEN 'MAX.DELAY' THEN [MAX.DELAY (HH:MM:SS)]
WHEN 'AHT' THEN [AHT (HH:MM:SS)]
WHEN 'ASA' THEN [ASA (HH:MM:SS)]
WHEN 'AVG QUEUE DURATION' THEN [AVG QUEUE DURATION HH:MM:SS]
WHEN 'TRANSFERRED' THEN SUM([Transfer Count])
WHEN 'SHORT ABANDONED' THEN [SHORT ABANDONED (ZN)]
WHEN 'SLA' THEN [SLA NEW (copy)]
END
------------------------------------------------------------
Could someone please provide guidance on how to set up dynamic measure names in Power BI, along with incorporating the Metric Value and Queue Name fields in the visualization, and filtering the top 10 queue names? Any help or suggestions would be greatly appreciated.

 

Thank you!
Manoj Prabhakar

1 REPLY 1
v-weiyan1-msft
Community Support
Community Support

Hi @manoj_0911 ,

 

Can you share sample data and the results you are hoping for? Show it as a screenshot or excel. Or a sample pbix after removing sensitive data. We can better understand the problem and help you.


Best Regards,
Yulia Yan


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

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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