Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Can anyone help me work out how to customise a number without turning it into text? I am trying to produce a line graph showing ranking (y) over time (x). As the y-axis is a ranking, 1 is the highest value but apparently Power BI doesn't have the functionality to invert the axis (please please correct me if I'm wrong on this as this would be the simplest solution of all).
As a workaround, I thought I could multiply my rankings by -1, then customise the format of the numbers to make negatives appear as positives. However, the only function I can find to do this is FORMAT, which turns the result into a text string rather than a number, which can't be used as a value on the line graph. I then tried wrapping the whole thing in VALUE, as per below, but this converted the formatted text into a number, i.e. I got my original rankings back! I feel like I have some of the correct elements in play but not in the right order.... this is as far as I got:
measure = VALUE(FORMAT(SUM(ranking),"-##;##"))
(The preset number formats in the Ribbon don't help me here as far as I can tell, but again please tell me if I'm wrong on that!!) Many thanks
Solved! Go to Solution.
@Anonymous , in the model view, when you click on a measure or column you get property view, yet it there
https://docs.microsoft.com/en-us/power-bi/desktop-custom-format-strings
Also referred - https://www.youtube.com/watch?v=vlnx7QUVYME
@Anonymous , in the model view, when you click on a measure or column you get property view, yet it there
https://docs.microsoft.com/en-us/power-bi/desktop-custom-format-strings
Also referred - https://www.youtube.com/watch?v=vlnx7QUVYME
Ahhh... thank you so much! That is one well-hidden little menu. My line graph now looks just grand.
User | Count |
---|---|
60 | |
22 | |
18 | |
18 | |
16 |
User | Count |
---|---|
86 | |
54 | |
54 | |
38 | |
21 |