cancel
Showing results for
Did you mean:
Post Prodigy

## 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 :-

_Vari_%_REV = if(isblank( divide(
[_YTD REV]
-
[_LYTD REV]
,
[_LYTD REV]
)),1, divide(
[_YTD REV]
-
[_LYTD REV]
,
[_LYTD REV]
))

Can some one share how to modify the above to force it display as %  ? Now it display as 12 decimal point.

Above is PBI file :-

1 ACCEPTED SOLUTION
Super User IV

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

Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

@mahoneypa HoosierBI on YouTube

2 REPLIES 2
Super User IV

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

Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

@mahoneypa HoosierBI on YouTube

Post Prodigy

@mahoneypat Thank you very for sharing the right approach in writing expression. it is more structure.

Paul

Announcements

#### Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

#### Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

#### Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Solution Authors
Top Kudoed Authors