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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
lherbert501
Post Prodigy
Post Prodigy

Dynamic Calculation Group Item

Hi,

 

I have a calculation group with 2 items in a matrix.

 

Is it possible to make the item name dynamic so e.g. the matrix could change with the years?

 

lherbert501_0-1777562164978.png

 

Thanks

1 ACCEPTED SOLUTION
Shai_Karmani
Resolver III
Resolver III

Calculation group item names are static and cannot be made dynamic with DAX. They are stored as fixed strings in the model, so the labels you see (25/26, 26/27) will not roll forward on their own.

 

The standard workaround is to swap the calc group for a small disconnected helper table whose label column is computed from TODAY(). Something like:

 

FYHelper =

VAR ThisY = YEAR(TODAY())

RETURN

ADDCOLUMNS(

GENERATESERIES(0, 1, 1),

"FY Label",

FORMAT(MOD(ThisY + [Value] - 1, 100), "00") & "/" & FORMAT(MOD(ThisY + [Value], 100), "00")

)

 

Put FY Label on the matrix axis where your calc items are now, then in your measure use SELECTEDVALUE on Value to shift the date filter for the right fiscal year. Both the labels and the calculations then roll forward automatically each year.

 

If this helped, please give a thumbs up and accept it as the solution.

 

Best,

Shai Karmani

View solution in original post

2 REPLIES 2
Shai_Karmani
Resolver III
Resolver III

Calculation group item names are static and cannot be made dynamic with DAX. They are stored as fixed strings in the model, so the labels you see (25/26, 26/27) will not roll forward on their own.

 

The standard workaround is to swap the calc group for a small disconnected helper table whose label column is computed from TODAY(). Something like:

 

FYHelper =

VAR ThisY = YEAR(TODAY())

RETURN

ADDCOLUMNS(

GENERATESERIES(0, 1, 1),

"FY Label",

FORMAT(MOD(ThisY + [Value] - 1, 100), "00") & "/" & FORMAT(MOD(ThisY + [Value], 100), "00")

)

 

Put FY Label on the matrix axis where your calc items are now, then in your measure use SELECTEDVALUE on Value to shift the date filter for the right fiscal year. Both the labels and the calculations then roll forward automatically each year.

 

If this helped, please give a thumbs up and accept it as the solution.

 

Best,

Shai Karmani

Thankyou @Shai_Karmani 

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.