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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.