Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi!
I can't wrap my head around this one but I know the community can.
I have fact table with transactions and dim calendar which is connected to fact via date.
fact
dim calendar
I'd need a boolean in fact table which gives 1 if Data_transaction is within 12 calendar months from Reporting Date (images are illustrations of what I'd need, unfortunately not the tables I've managed to produce).
Could you help me out with a solution which solves this?
Solved! Go to Solution.
=IF([Date_Transaction]>EDATE([Reporting Date],-12) && [Date_Transaction]<=[Reporting Date],1,0)
= IF([Date_Transaction] IN CALENDAR(EDATE([Reporting Date],-12)+1,[Reporting Date]),1,0)
=IF([Date_Transaction]>EDATE([Reporting Date],-12) && [Date_Transaction]<=[Reporting Date],1,0)
= IF([Date_Transaction] IN CALENDAR(EDATE([Reporting Date],-12)+1,[Reporting Date]),1,0)
Fantastic! Thanks!
User | Count |
---|---|
84 | |
78 | |
70 | |
47 | |
41 |
User | Count |
---|---|
108 | |
53 | |
50 | |
40 | |
40 |