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.
Hi,
I want to show only the latest value in a trend line.
I am aware that I can reduce the frequency of the label, but I only want to show the latest data label.
Is it possible ?
Solved! Go to Solution.
Hi @Saniat ,
I created the following example data.
Then add the following measure to the line chart. Then turn off the data label for the [Value] series and turn on the data label for the measure [LastValue] only.
LastValue =
IF (
MAX ( 'Table'[Index] ) = MAXX ( ALLSELECTED ( 'Table' ), 'Table'[Index] ),
SUM ( 'Table'[Value] )
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Saniat ,
I created the following example data.
Then add the following measure to the line chart. Then turn off the data label for the [Value] series and turn on the data label for the measure [LastValue] only.
LastValue =
IF (
MAX ( 'Table'[Index] ) = MAXX ( ALLSELECTED ( 'Table' ), 'Table'[Index] ),
SUM ( 'Table'[Value] )
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for this.
I have Event Date instead of Index, so tried this:
Hi @Saniat ,
The field in the MAX/MAXX function depend on your x-axis fields, is your x-axis only the [Event Date] column?
Best Regards,
Winniz
That is right, it is only Event Date field.
Hi @Saniat ,
Please try this measure to see if it returns the correct value.
LastValue =
IF (
MAX ( '1'[Event Date] ) = MAXX ( ALLSELECTED ( '1'[Event Date] ), '1'[Event Date] ),
SUM ( '1'[HC=1] )
)
Best Regards,
Winniz
@Saniat , refer to my blog on this. check if that can help
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |