Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Sumx with Dynamic Year

Hello,

 

I got a question. I want to make the following formula with a new column:

% = Umsatz[Umsatz]/SUMX(FILTER(Umsatz;Umsatz[Bereich]="Ums"&&Umsatz[Jahr]=2017);Umsatz[Wert])

But instead of 2017 I'd like to make a dynamic recognition for that row (I guess I cannot apply to a value on a combobox).

 

4 REPLIES 4
Anonymous
Not applicable

Anonymous
Not applicable

Ok something is still wrong. In my table the SumMyPeriod, is now the sum of the Row but not the overall of the year. But just in my table. When I put it in a single card, it's the overall sum.

 

Measure
SumMyPeriod = SUMX(FILTER(Umsatz;Umsatz[Bereich]="Ums"&&Umsatz[Jahr]=[MyPeriod]);Umsatz[Wert])
Measure MyPeriod = SELECTEDVALUE(Umsatz[Jahr])

Measure
Percentage = DIVIDE(Umsatz[Umsatz];Umsatz[SumMyPeriod])

 

Pic.PNG

 

Anonymous
Not applicable

please provide sample file

sokg
Solution Supplier
Solution Supplier

do you have a date in that row???

 

If yes use YEAR(Table[date]).

 

Hopefully this is what you are looking for!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors