Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have a problem. I'm tryin to calcutate the profitof a certain product. This containt two calculations;
- Revenue carparts
- Cost carparts
Both of these calculations come from the same source witch is ralated to the the date-table.
In my table I have a column with revenue, next one cost and then profit. The problem is that when i select a certain period, for instance january 2023, i get the revenue from january 2023 and the cost of january 2023. The carparts may be bought several periods before, hence the problem. How can i make a caluclation that says;
- Revenue january 2023
- Cost all time
These are again related to a project-table.
Do you try a ALL() or ALLEXCEPT() ?
Proud to be a Super User!
Please try the following:
Okay, you can filter your measures via date table:
- Revenue january 2023
- Cost all time
But the third measure do not use the filter, because of the missing relationship?
Proud to be a Super User!
I try to understand the problem. Do you mean that you filter a period of time, items in this time frame generate cost and revenue but the items were bought before. ? Sorry i did not understand it. Can you show a good example and also your underlaying data?
Proud to be a Super User!
In our business we order the carparts serveral periods before we invoice the part.
Hi!
The calculation that shows revenue carparts is as follows;
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.