Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everyone,
I'm trying to crack the following problem. I've attached the Excel file with the model and my measures: https://1drv.ms/x/s!Ao_VEs0z3bf5pVpZ360DvfwixfA1?e=ZNIpkV
I have an accounting log that stores sales and costs data for different projects.
Our business logic implies that costs must be written-off only when there is a revenue accounted for a project, and all the costs BEFORE revenue date should be included. If there are several revenue dates, we must write off all the costs between these dates.
I also want to keep lineage to "Expense Item" dimension.
Here's the desired output:
Here, [Direct Costs] computes all the cost at their posting date. [WrittenOff Costs] is my failing creation. And [Desired Measure] is a workaround to show the desired output.
I'll be very grateful for any help.
@Greg_Deckler , unfortunately I don't have a [Cost] column. [Cost] is a measure.
The formula you suggested (I called it [Values]) is equivalent to [Total Amount] measure in my model:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
41 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
43 | |
32 | |
30 | |
18 | |
18 |