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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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!

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.