The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi All,
I have a slicer where I can select between Imperial and Metric values. Currently I have area values in the table displayed without sqm/sqft, just pure numbers. I have created this measure in order to get sqm/sqft displayed together with those amounts from the column:
Yeah, data bars aren't going to work with text output. Luckily, you can keep the measure a numeric data type and still set a custom format for it.
In the Model pane select the measure and set Format to custom and set the format string here:
I used this format string:
#,0\s\q\m
Thanks for your response @AlexisOlson
I assume you didn't apply this format to my measure, but on a clean number field?
When I try to use this custom format with my measure from above, it doesn't work.
If I apply this format to a measure that is showing just a number, then it works, but it's not what I need.
I need this to be dynamic, so when I select 'Imperial' from the slicer I expect to see SQFT and when I select 'Metric' I expect to see SQM. Because of that I created a measure that I written above.
Does it mean that it's not possible to have data bars withs such measure?
Thanks.
That's correct. I applied it to a clean number field.
It's a bit trickier if you need multiple custom formats but I was able to do leveraging the Format String Expression within a calculation group.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
80 | |
66 | |
53 | |
52 |
User | Count |
---|---|
121 | |
117 | |
77 | |
64 | |
63 |