This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hello Community,
For several days I have been dealing with a filter. I have a small calendar table, where I also have a column "Relative_cod" that goes from number 1 to 24, with 1 being the number of the most current month and 24 the oldest.
Now, I create a measure for my QTR (in Tableau) more or less like that (with the 24 months)
How could I achieve the same in Power bi? I have already created a measure and a table, pass my measure to the table
Thank you for your reply, but I still don't achieve the result I expect. Using DATEADD I only move the months but I do not bring the total accumulated of the quarter
QTR = SWITCH(TRUE(),[RELATIVE_CODE]<= 4, [MTH],
[RELATIVE_CODE] < 7, DATEADD(Period[DATE],-21,MONTH),
[RELATIVE_CODE]<10, DATEADD(Period[DATE],-18,MONTH),
<some value for "else">)
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 28 | |
| 28 | |
| 26 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 52 | |
| 47 | |
| 39 | |
| 21 | |
| 20 |