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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
pfiloch
New Member

Calculated column subtract values

Dear all,

i want to have a calculated coulmn called diff. Here i want to substract the value for each Cat -100 (actually the value from Car OEE100. But can be also use a constant if easier.

Like Cat="" Availability" 69.5340... - 100 and write the result in column diff.

Next Cat = "Performance" 62.192... - 100

 

pfiloch_0-1699514469565.png

Thx to all

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

Share data in a format that can be pasted in an MS Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
pfiloch
New Member

Thx for the reply. But for row 2 i need value -38 since 62-100 is the substraction.

 

thx a lot

hi @pfiloch ,

 

try out the proposal with your own dataset. 

FreemanZ
Super User
Super User

hi @pfiloch ,

 

try to add a column like:

column = 
VAR _valuepre =
MAXX(
    TOPN(
        1,    
        FILTER(data, data[Index]<EARLIER(data[index])), 
        data[index]
    ),    
    data[value]
)
RETURN
[Value] - _valuepre

 

it worked like:

FreemanZ_0-1699517843598.png

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.