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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Charlie42
Frequent Visitor

Divide value of 2 columns

Hi everyone,

 

Into my table, I would like to add a column with as value the division of two other columns.

In the first time, for trying, I tested with the substraction, and it works:

Charlie42_0-1676955755307.png

 

But, now, if I want calculate the division I have a blank value...

Charlie42_1-1676955829260.png

 

I also tried with 

Diff % = SELECTEDVALUE('Sales 2023'[RE Sale]) / SELECTEDVALUE('Sales 2023'[LY Sale])

or simply

Diff % = 'Sales 2023'[RE Sale] / 'Sales 2023'[LY Sale]

 

but the result is the same.

 

Could you help me?

 

Thanks in advance.

 

PS: I tried with a measure. It works, but my problem is I have to do this calculation in several table (2022, 2021, 2020) and, after that I merge my tables... And here I have a new problem with the value.

 

Thanks for your help.

 

 

Charles.

2 REPLIES 2
Charlie42
Frequent Visitor

Hi @olgad ,

 

As you can see, I already tried with DIVIDE and it doesn't work.

'Re Sales' and 'LY Sales' are columns. 

olgad
Super User
Super User

Hi,
Using  / is not a good idea, try to use DIVIDE(RE Sale, LY Sale)  Re Sale na dLY Sale are those measures or columns?


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Solution Authors