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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

How to add labels (quantity of records) to a graph showing average days

Hello,

 

I am trying to make a graph that shows on the y-axis the average amount of days (ex. average days it takes to validate an authorization) per month (x-axis). This graph will show an evolution of the average amount of days it takes to treat a dossier in a column chart.

 

However, I wanted to add a label that shows how many records/dossiers we get every month to this graph. I haven't found a way of doing this, because a label normally shows the same information that can be found on the graph (namely the average days of treatment)

 

Is there a way to add the label (quantity) to this graph? 

 

 

2 REPLIES 2
v-yangliu-msft
Community Support
Community Support

Hi  @Anonymous  ,

According to your description, I created some data to show:

v-yangliu-msft_0-1606123095179.png

1. Create calculated column.

 

Month = MONTH('Table'[Date])

 

2. Create measure.

 

day_time_measure =
CALCULATE(COUNT('Table'[Date]),FILTER('Table','Table'[Month]=MAX('Table'[Month])))

amount_time =
CALCULATE(SUM('Table'[amount]),FILTER('Table','Table'[Month]=MAX('Table'[Month])))

 

3. Put month into axis, day_ time_ Put measure into value

v-yangliu-msft_1-1606123095184.png

 

After that, there are two ways to present them

1. Add the amount_ Put time in the card diagram

how to add1.jpg

2. Add the amount_ Put time in the value of column chart

how to add2.jpg

 You can downloaded PBIX file from here.

 

Best Regards,

Liu Yang

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

amitchandak
Super User
Super User

@Anonymous , Not very clear, You can add a tooltip. I doubt you can label.

See scatter visual can fit in your need: https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-scatter

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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