Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I have division measure, which contains values some of them should be displayed as %, and the rest as numbers, formatting should be based on another values in another feild.
for example if attribute=ABC then measure should be in percentage else should be shown in number.
my organisation doesnt allow tabular editor, so please suggest a solution that doesnt contain tabular editor.
Solved! Go to Solution.
Hi @Zaytoon
You can do
Mesure2 =
VAR Value1 = [Measure1]
RETURN
IF ( SELECTEDVALUE ( 'Table'[Attribute] = "ABC", FORMAT ( Value1, "Percent" ), Value1 )
Many thanks tamer that worked perfectly well in matrix table however sth gone wrong in charts as shown below, the attribute whose condition is true disappeared from chart. do you know how this can be sorted.
FORMAT returns a string ( text data type) l. The chart cannot determine a value of a text and hence cannot plot a text.
Hi @Zaytoon
You can do
Mesure2 =
VAR Value1 = [Measure1]
RETURN
IF ( SELECTEDVALUE ( 'Table'[Attribute] = "ABC", FORMAT ( Value1, "Percent" ), Value1 )
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
23 | |
21 | |
20 | |
14 | |
12 |
User | Count |
---|---|
43 | |
31 | |
24 | |
22 | |
22 |