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
OlegV
Helper II
Helper II

Line chart with multiples: show data label of the last date

Hello,

I am not able to show data label of the last date. I face two problems:
1) the measure does not work as I expect. Both in a table and in a Line chart

OlegV_0-1632852802672.png

table:

OlegV_1-1632853265336.png

Line chart with multiples (here it is supposed to show only markers and data labels of the last dates):

OlegV_2-1632853424620.png

 

2) I am not able to add a measure to a "Sacondary values" field after I added values to a " Values" field.

 

3 REPLIES 3
v-eqin-msft
Community Support
Community Support

Hi @OlegV ,

 

1. I tried the measure you used on my side, and it worked:

avg = AVERAGE('Table'[Value])
last day avg = 
var _max=MAXX(ALL('Table'),[Date])
return CALCULATE([avg],FILTER('Table',[Date]=_max))

Eyelyn9_2-1633054984694.png

 

 2. [Value] to Values field, [avg] measure to Secondary values:

Eyelyn9_1-1633054903324.png

 

Please provide me with more details about your table and your expect outputs or share me with your pbix file after removing sensitive data.

 

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

Hello, @v-eqin-msft 
Thank you for a reply. Yes, I can see that in your example a maesure works.

Please find a link to download a .pbix file with the data and my charts.

https://1drv.ms/u/s!AjD38l7_q5wZgasw9yQRp6Su73cdLQ?e=PhQh1d

or this link, if onedrive does not work

https://dropmefiles.com/E2efF

The result I would like to get is

OlegV_0-1633341973896.png

 

parry2k
Super User
Super User

@OlegV Read this post to get your answer quickly.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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.