Forum Discussion
Report Format Help
Hi, GuestUser
Based on your description, I created data to reproduce your scenario.
Actual:
Budget:
DateTable(a calculated table):
DateTable = CALENDARAUTO()
You may create measures as follows.
Actual Count-MTD =
TOTALMTD(
SUM(Actual[Count]),
DateTable[Date]
)
Actual Count-YTD =
TOTALYTD(
SUM(Actual[Count]),
DateTable[Date]
)
Budget Count-MTD =
TOTALMTD(
SUM(Budget[Value]),
DateTable[Date]
)
Budget Count-YTD =
TOTALYTD(
SUM(Budget[Value]),
DateTable[Date]
)
MTD =
IF(
ISINSCOPE(Budget[Budget Date]),
Budget[Budget Count-MTD],
Actual[Actual Count-MTD]
)
YTD =
IF(
ISINSCOPE(Budget[Budget Date]),
Budget[Budget Count-YTD],
Actual[Actual Count-YTD]
)
Then you can create a matrix visual as below. The first level(the blue one) on the row is Actual Date and the second level(the black one) is Budget Date.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- GuestUser6 years ago
Helper V
Thanks v-alq-msft for your reply
But in the report format, on left hand side - i do not need the dates , I need a hardcoded Value (which does not come from any table) -- "Actual" and "Budget"
like
2019
MTD YTD
Actual
Budget
Can you pls suggest
- v-alq-msft6 years ago
Community Support
Hi, GuestUser
You may create two calculated columns in two tables to achieve you requirement.
ActualDes = "Actual" BudgetDes = "Budget"However, if you don;t have dates to filter the result, the YTD will calculate the total value and the MTD will calculate the value of max month. YTD and MTD need to change with dates.
Best Regards
Allan