DAX : Cummulative Sum including Missing dates in Fact
Hi All
we got a situation where we need to calculate daily budget , even if fact table missing some dates we need to calculate for dates
Cumulative Budget =
VAR RowDate = DateTime[Date]
RETURN
CALCULATE (
SUM ( DateTime[Budget]),
FILTER (
DateTime,
DateTime[Date] <= RowDate && YEAR ( DateTime[Date] ) = YEAR ( RowDate ) && month ( DateTime[Date] ) = MONTH( ( RowDate )
we got a situation where we need to calculate daily budget , even if fact table missing some dates we need to calculate for dates
Cumulative Budget =
VAR RowDate = DateTime[Date]
RETURN
CALCULATE (
SUM ( DateTime[Budget]),
FILTER (
DateTime,
DateTime[Date] <= RowDate && YEAR ( DateTime[Date] ) = YEAR ( RowDate ) && month ( DateTime[Date] ) = MONTH( ( RowDate )
This idea is mind blowing. I think everyone should know such information like you have described on this post. Thank you for sharing this explanation. Thank you for sharing wonderful information with us to get some idea about that content.
ReplyDeleteoracle training in chennai
oracle training institute in chennai
oracle training in bangalore
oracle training in hyderabad
oracle training
oracle online training
hadoop training in chennai
hadoop training in bangalore