Forum Discussion
How to modify my expression to force Vari % return as % ?
Hi All
VijayP have share with me Advanced Card , This Vis is must better then PBI Card Visulisation.
Because it can display more information in one card.
When i try to use the below expression for display % Vari :-
Above is PBI file :-
Select your measure in the Fields panel and then click on the % sign to format it as percent in the ribbon. Also, you should write that measure using a variable to keep it from calculating twice each time.
_Vari_%_REV =
VAR vResult =
DIVIDE (
[_YTD REV] - [_LYTD REV],
[_LYTD REV]
)
RETURN
IF (
ISBLANK ( vResult ),
1,
vResult
)Pat
2 Replies
- mahoneypatMicrosoft Employee
Select your measure in the Fields panel and then click on the % sign to format it as percent in the ribbon. Also, you should write that measure using a variable to keep it from calculating twice each time.
_Vari_%_REV =
VAR vResult =
DIVIDE (
[_YTD REV] - [_LYTD REV],
[_LYTD REV]
)
RETURN
IF (
ISBLANK ( vResult ),
1,
vResult
)Pat- admin11Memorable Member
mahoneypat Thank you very for sharing the right approach in writing expression. it is more structure.
Paul