March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello All,
I am trying to get value lables in below picture in power BI bar chart, my Y-AXIS measure is EntryCount=Count(Table[EntryNumber]).
If my number value is in millions show it in millions , if like 0.4M show it as 400k like this
Please help,
Thanks
Solved! Go to Solution.
Hi @Bharathi_99 ,
Thanks for his reply. His measure is available, but one thing I need to correct is that in this case, the y-axis accepts a numeric type and the format casts it to a text type, which is why the outright substitution is unsuccessful. The correct application is visualizations -> Format your visual ->Data lablesv -> Value, apply this measure to the filed box
Final output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Bharathi_99 ,
Thanks for his reply. His measure is available, but one thing I need to correct is that in this case, the y-axis accepts a numeric type and the format casts it to a text type, which is why the outright substitution is unsuccessful. The correct application is visualizations -> Format your visual ->Data lablesv -> Value, apply this measure to the filed box
Final output
Best regards,
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
@Bharathi_99 , You can create a measure
If you want to customize the display units further, you can use a DAX measure to format the values.
FormattedEntryCount =
VAR EntryCountValue = [EntryCount]
RETURN
SWITCH(
TRUE(),
EntryCountValue >= 1000000, FORMAT(EntryCountValue / 1000000, "0.0M"),
EntryCountValue >= 1000, FORMAT(EntryCountValue / 1000, "0K"),
FORMAT(EntryCountValue, "0")
)
Use the Custom Measure:
Replace your Y-axis measure with the new FormattedEntryCount measure.
Proud to be a Super User! |
|
I cannot able to add above measure in Y-AXIS, when i am dragging it directly going and placing in Tooltips,
why it's happening like this any idea?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
127 | |
82 | |
69 | |
53 | |
44 |
User | Count |
---|---|
202 | |
106 | |
100 | |
64 | |
56 |