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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.