Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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;
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |