Forum Discussion
akhassim
2 years agoNew Member
Power bi
I ahve the following graph.
Each line needs to start and end with the dates with first info in. I believe this entails finding first and last dates where data is >0 and adding those into the measure as the filters. i.e.
- For actual dates: Cumulative Last Actual Date = CALCULATE(LASTDATE('Cost Graphs'[Date]),('Cost Graphs'[Cost Actual]>0))
- For actual dates: Cumulative First Actual Date = CALCULATE(FIRSTDATE('Cost Graphs'[Date]),('Cost Graphs'[Cost Actual]>0))
- Forecast will start with the Last Actual Date, end with Last Forecast Date
- Budget will start with the First Budget Date, end with Last Budget Date.
this is my current measure. Please assist.
CumulativeCostActual =
CALCULATE(
SUM('cost graphs'[Cost Actual]),
FILTER(
ALL('cost graphs'),
'cost graphs'[Date] <= MAX('cost graphs'[Date])
)
)
1 Reply
- lbendlinSuper User
Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523