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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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