Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
PaulMcDk
Frequent Visitor

DIVIDE and PERCENTAGE

Dear community,

 

i'd need your support as i'm trying to do - apparently - a very easy thing but ... i can't 🙂

I have a table loaded with 2 simple measures: count number of trips.

I created another simple measure which is the difference between the two columns.

PaulMcDk_0-1626942902307.png

 

So you see that's super easy.  I would love to add a measure called Delta trip % which is basically the (Trip Actual / Trip Budget ) -1 and % format.

 

I then created this whici partially works

As  you see, % is ok but the same table with new measure is creating :

i) first top blank line

ii) other line "not needed"  such as INDIA and ROMANIA.

Any suggestion ?

 

thank you very much for your great support !

 

PaulMcDk_1-1626943045838.png

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@PaulMcDk , Try like

 

divide([Trip Actual] -[Trip Budget] , [Trip Budget] , blank())

 

or

if(isblank([Trip Actual] ) || isblank([Trip Budget]), blank(), divide([Trip Actual] -[Trip Budget] , [Trip Budget] , blank()) )

 

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@PaulMcDk , Try like

 

divide([Trip Actual] -[Trip Budget] , [Trip Budget] , blank())

 

or

if(isblank([Trip Actual] ) || isblank([Trip Budget]), blank(), divide([Trip Actual] -[Trip Budget] , [Trip Budget] , blank()) )

 

thanks!

first like did work

 

p

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.