gpt-3.5-turbo-0613· OpenAI
WildChat-4.8M (AI2)
Power BI - Have planned value and Actual Value fields in table. Need to display to date…
- User
Power BI - Have planned value and Actual Value fields in table. Need to display to date Actual Value and Planned values
- Assistant
To display the "To date Actual Value" and "Planned Values" in Power BI, you can create two separate measures using DAX functions. Here's how you can achieve this:
- Open the Power BI Desktop.
- Go to the "Modeling" tab in the ribbon and click on "New Measure".
- In the formula bar, enter the following DAX formula to calculate the "To date Actual Value":
To date Actual Value = CALCULATE(SUM('YourTable'[Actual Value]), FILTER(ALL('YourTable'), 'YourTable'[Date] <= MAX('YourTable'[Date])))Replace
'YourTable'with the actual name of your table and'Actual Value'with the actual column name containing the actual values.- Click on "New Measure" again and enter the following DAX formula to calculate the "Planned Values":
Planned Values = SUM('YourTable'[Planned Value])Replace
'YourTable'with the actual name of your table and'Planned Value'with the actual column name containing the planned values.- Place a table visual on your report canvas.