Forum Discussion
Differrance betwee two values in rows
- 6 years ago
Hello Anonymous
the solution I proposed is Power Query. That what you are stating is DAX.
If the DAX solution is okay, go for it.
However, if you are copying my code into the advanced editor, it should not spin. Is a straightforward code. This is the result of combining the example data in my code
Jimmy
Not sure how,
There is a table called "Codering max trances" with two collums "Productcode" and "max omvang"
This got a relation with a table called "DimVoorziening" on productcode.
The table "DimVoorziening"has a relation with a table called "FeitNVTZ" on a unique codenumber, different from the productcode.
Finaly there is a relation from "FeitNVTZ"to a table called "FeitLevering"
This last table contains the values of the the given form collum "aVolume"
So what i need is the difference between
"Codering max trances"[max omvang] - "FeitLevering"[aVolume]
Then, when the value is 0 or less than zero i want to filter on those values so someone can get in contact with the company's which has more trances than the max volume.
Hi H_Delwel,
If possible, could you please inform me more detailed information (such as your sample data an your expected output)? Then I will help you more correctly.
Please do mask sensitive data before uploading.
Thanks for your understanding and support.
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous6 years agoNot applicable
Can you do somthing with this?
The last collum(H) is what i'm trying to make from the two different tables (FeitLevering and CoderingMaxTrances)
So value maxOmvang minus aVolume
- dax6 years agoCommunity Support
Hi H_Delwel,
Yes, I will try to get the result of your image, but if possible, could you please show me the four table samples instead of showing the data in same visual, I need to know their structure and try to reproduce this in my environment.
Please do mask sensitive data before uploading.
Thanks for your understanding and support.
Best Regards,
Zoe ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous6 years agoNot applicable
Hi Zoe,
Do you mean like this?