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
Hi,
i want to make a new table source with only max year data; how can i filter that
i tried this, but doesn't work
newfilteredsource =
VAR MaxYear =
CALCULATE ( MAX ( Source[Year] ), ALL ( Source ) )
RETURN
SUMMARIZE (
Source,
Source[Salesmen],
Source[Sales],
"Year", CALCULATE (
MAX ( Source[Year] ),
FILTER ( Source, Source[Year] = MaxYear )
)
)
Thanks,
Cosmin
Solved! Go to Solution.
try this revision
newfilteredsource =
VAR MaxYear = MAX ( Source[Year] )
RETURN
SUMMARIZE (FILTER ( Source, Source[Year] = MaxYear ),
Source[Salesmen],
Source[Sales],
"Year", MaxYear
)
try this revision
newfilteredsource =
VAR MaxYear = MAX ( Source[Year] )
RETURN
SUMMARIZE (FILTER ( Source, Source[Year] = MaxYear ),
Source[Salesmen],
Source[Sales],
"Year", MaxYear
)
Hi
i discovered that it doesn't work proper
there is a difference somewhere
so 2019 sum sales in the new base is different and also part of salesmen have different sum Sales
can you help me please with this?
Thanks,
Cosmin
Hi,
i used the answer on another post where i wanted to do unique values for Salesmen and sum of Sales
Test293Out = VAR _MaxYear = MAX(Test293Summarize[Year]) RETURN SUMMARIZE(FILTER(Test293Summarize,Test293Summarize[Year]=_MaxYear),Test293Summarize[Salesman],"Sales",SUM(Test293Summarize[Sales]))
Thanks for your help,
Cosmin
Thanks!
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 |
|---|---|
| 104 | |
| 81 | |
| 66 | |
| 50 | |
| 45 |