Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi, I am trying to sum up a value for the current periods and the previous periods (current-13).
I tried this :
Hi,
Is there no date column?
Hi, @jianlong , you might want to try this,
case_previous_FP =
CALCULATE ( SUM ( SWT[CASES_COMPLETED] ), FISCAL_PERIOD[Index] <= 13 )
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
You can try this @jianlong
case_previous_FP =
CALCULATE(
SUM( SWT[CASES_COMPLETED] ),
FILTER(
ALL( FISCAL_PERIOD[Index] ),
FISCAL_PERIOD[Index] - 13
)
)
I'd need to see data though to really look at it more closely.
How to get good help fast. Help us help you.
How to Get Your Question Answered Quickly - Give us a good and concise explanation
How to provide sample data in the Power BI Forum - Provide data in a table format per the link. Provide expected output using a screenshot of Excel or other image. Do not provide a screenshot of the source data. I cannot paste an image into Power BI tables.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingCheck out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 76 | |
| 52 | |
| 51 | |
| 46 |