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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello friends, I would like to generate data from the same period last year in the same record of the current year. The problem is that I need to summarize the base table to then calculate the average of the required field:
TEST =
VAR Var_A =
SUMMARIZE(DATA
, DATA[NUMPOL]
, DATA[MES_INI]
, DATA[MES_FIN]
,"Prime"
, CALCULATE(
SUM(DATA[Prime])
,SAMEPERIODLASTYEAR(Calendario[Date]))
)
VAR Var_B =
AVERAGEX(Var_A,[Prime])
RETURN Var_B
But the result generates a blank column of values,
I am quite rookie on DAX functions and I would like some help please
Hi @Dangar332 , I couldn't add that column, it's weird because I have a many-to-many relationship between both tables
Check 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 |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 20 | |
| 18 | |
| 16 | |
| 14 | |
| 14 |