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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
ElectricalGuy
Regular Visitor

subtract a value if in another column a second id with an .W exist

Hi everybody,

 

thank you very much for the quick help at the first step. (Solved: automatically subtract by an additinal letter - Microsoft Power BI Community) Unfortunately the solution for my issue needs a further step. I need to subtract the value out of the row "Vorgangssumme" as you can see at the picture. The formula would be:

 

If a seconde id with ".W" exist than subtract the value of "Vorgangssumme" from the row with the ´".W" from the value from the row without the ".W", as you can see in the picture below. Otherwise show the value without the subtraction.

 

ElectricalGuy_2-1679645412835.png

I hope that my explanations is comprehensible.

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

1) need to create an index column

Screen Capture #748.png
2) write the following measure:

Screen Capture #749.png

View solution in original post

3 REPLIES 3
Ahmedx
Super User
Super User

1) need to create an index column

Screen Capture #748.png
2) write the following measure:

Screen Capture #749.png

Thank you very much, your solution works. Now i have a new issue but this time based on the data. 

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.