Forum Discussion
odeta
8 years agoRegular Visitor
Dinamical Column Sum According to Selected Date Filter
Hello, I have data like this (data from 2016-06-30 until 2016-09-06 with all dates): Sample data can be found here: https://1drv.ms/f/s!AiAA2np9BkqaaAg7NacBvej_2F0. Below it is filtered...
- 8 years ago
Hi odeta,
Please check out the demo here.
1. Add a calendar table without relationship to other tables.
2. Create several measures.
No Delay = SUMX ( FILTER ( SUMMARIZE ( 'data', data[Customer], data[DueDate], "Amount", SUM ( data[Amount] ), "Delay", MAX ( 'Calendar'[Date] ) - [DueDate] ), [Delay] < 0 ), [Amount] )and other four measures in the demo.
Best Regards,
Dale
v-jiascu-msft
Microsoft Employee
8 years agoHi odeta,
Please check out the demo here.
1. Add a calendar table without relationship to other tables.
2. Create several measures.
No Delay =
SUMX (
FILTER (
SUMMARIZE (
'data',
data[Customer],
data[DueDate],
"Amount", SUM ( data[Amount] ),
"Delay", MAX ( 'Calendar'[Date] ) - [DueDate]
),
[Delay] < 0
),
[Amount]
)and other four measures in the demo.
Best Regards,
Dale