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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Calculation Not Working for Calculated Column

Hi Ya'll,

 

I have these 2 formulas:

 

Measure
LTIP Shares = ROUNDDOWN(CALCULATE(SUM(LTIP[Amount]))/'Stock Price'[Stock Price Value],0)
Sample: 25,000 / 54.78 = 456 shares (the round down eliminates the excess because it won't yield a full share)
 

Calculated Column

PSU = Switch(
True(),
LTIP[Management Level] IN {"5B","5A","4B","4A","3"},ROUNDDOWN([LTIP Shares]*.25,0),
LTIP[Management Level] IN {"2","1","0"},ROUNDDOWN([LTIP Shares]*.50,0),
Blank()
)
 
What I want is if a worker is in a specific management level, I want it to spit out 25% or 50% of the LTIP shares for that worker and round down so it give me the full shares. So say the worker is a 5B and they are entitled to 456 shares, they should get 25% of those shares as PSUs and should give me a value of 114 -- it's instead giving me 178! 
 
What am I doing wrong? Been wracking my brain and I feel like I am overlooking something...
 
Any help would be great please! Thanks!
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous ,

You can nor measure in a column.

 

Try a measure like this


PSU =
sumx(Values(LTIP[Management Level]) ,
Switch(
True(),
max(LTIP[Management Level]) IN {"5B","5A","4B","4A","3"},ROUNDDOWN([LTIP Shares]*.25,0),
max(LTIP[Management Level]) IN {"2","1","0"},ROUNDDOWN([LTIP Shares]*.50,0),
Blank()
))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous ,

You can nor measure in a column.

 

Try a measure like this


PSU =
sumx(Values(LTIP[Management Level]) ,
Switch(
True(),
max(LTIP[Management Level]) IN {"5B","5A","4B","4A","3"},ROUNDDOWN([LTIP Shares]*.25,0),
max(LTIP[Management Level]) IN {"2","1","0"},ROUNDDOWN([LTIP Shares]*.50,0),
Blank()
))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Doh! You're right! 

Thanks so much! I appreciate your help here!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.