The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi ,
I need to calculate the actual cost data to specific date.
In relation to this existing report – how to create a measure to specify actual cost data to a specific date will display as it does and after a specific date x-1 so that the value is reversed?
Solved! Go to Solution.
Hi @Sona2023 ,
Assuming you have a date table, you can do something like this:
Please adjust for your table and field names
Cost up to date= CALCULATE([Cost Measure],FILTER(ALL(Datetable),Datetable[Date]<="12/2/2022"))
Cost after date= CALCULATE([Cost Measure],FILTER(ALL(Datetable),Datetable[Date] >"12/2/2022"))
Please accept as solution if this answers the question- thanks!
Hi @Sona2023 ,
Assuming you have a date table, you can do something like this:
Please adjust for your table and field names
Cost up to date= CALCULATE([Cost Measure],FILTER(ALL(Datetable),Datetable[Date]<="12/2/2022"))
Cost after date= CALCULATE([Cost Measure],FILTER(ALL(Datetable),Datetable[Date] >"12/2/2022"))
Please accept as solution if this answers the question- thanks!
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
31 | |
11 | |
10 | |
10 | |
9 |