Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello,
inside my report i have numeric measures and columns where i would like to display number in a simplified way.
For example:
For the measures i have managed to do so by adding the dynamic format with this code:
SWITCH (
TRUE (),
SELECTEDMEASURE () <= -1000000, "#,##0.0,,.0M€",
SELECTEDMEASURE () <= -1000, "#,##0,.0K€",
SELECTEDMEASURE () < 1000, "#,##0€",
SELECTEDMEASURE () < 1000000, "#,##0,.0K€",
"#,##0.0,,.0M€"
)
Now i need to do the same for a column inside a table but i cant use the dynamic format and i have to use the custom options.
Can someone suggest me a custom format to use? I have one for Excel but its not working properly here
Hi @wep,
Thank you for reaching out to Microsoft Fabric Community.
Thank you @MasonMA and @bhanu_gautam for the prompt response.
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the user resolved your issue? or let us know if you need any further assistance.
If any response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.
Thanks and regards,
Anjan Kumar Chippa
Hi @wep,
We wanted to kindly follow up to check if the issue is resolved?
If any response resolved your issue, please mark it as "Accept as solution" and click "Yes" if you found it helpful.
Thanks and regards,
Anjan Kumar Chippa
Hi @wep
SELECTEDMEASURE() only works for measures, not for columns in Power BI visuals. If you wanted to use this function on one of your measures for numeric aggregations, i found a good video from Curbal that may help you achieve this.
https://www.youtube.com/watch?v=_F4MwolGrmg
Please let us know if there's a better way.
Thanks
Mason
@wep , Try using
FormattedColumn =
SWITCH(
TRUE(),
[YourColumn] >= 1000000, FORMAT([YourColumn], "0.0,,") & "M€",
[YourColumn] >= 1000, FORMAT([YourColumn], "0.0,") & "K€",
FORMAT([YourColumn], "0 €")
)
Proud to be a Super User! |
|
This is for dynamic format and it applies only to measure.
I cant write that in the box i have posted in the last picture.
User | Count |
---|---|
85 | |
80 | |
77 | |
49 | |
41 |
User | Count |
---|---|
114 | |
56 | |
51 | |
42 | |
42 |