Forum Discussion
dennisdepoorter
Helper I
7 years agoRelative date filter true DAX
Hi all, I'll try to get an additional column in my 'order product' table based on a relative (rolling) date. I tought i figgured it out, but it just don't work. Can someone help me out with the ...
- 7 years ago
Hi dennisdepoorter,
That's impossible. I have added some comments in the snapshot below. It's a COMMA in the formula while it's a DOT in the error message.
1. Please upgrade the Desktop to the latest version.
2. Try this formula.
Quantity L30D = CALCULATE ( SUM ( 'Order Product'[Quantity] ), DATESBETWEEN ( 'Order'[ActivatedDate].[Date], (MIN ( 'Order'[ActivatedDate] ) - 30), MIN ( 'Order'[ActivatedDate] ) ) )Best Regards,
Dale
v-jiascu-msft
Microsoft Employee
7 years agoHi dennisdepoorter,
Is [ActiveatedDate] a column or a measure? I made a few adjustments. It worked in my test.
Best Regards,
Dale
dennisdepoorter
Helper I
7 years agov-jiascu-msft I did rebuild it (3 times :smileyfrustrated:), but error keep showing up:
hmmmm :(
thanks anyway... I can rebuild the database with less and changed data... but thats some hours work :smileysad: