Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |