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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Young_G_Han
Helper III
Helper III

Dynamic Column Name changed by the selected Year & Month

  Dear Kudos

 

I am converting an old Excel file report to the BI.

 

The old Excel file has many customized columns and cells.

 

One of my missions is to create measures for the following tables.

 

 

Factory  |  Operation  | Last Year Total | Last 13 Month by Month | Current Year Total | Current Year Avg.

 

Above the list is the column header.

The production data refers to many different database files.

 

So there are many rows that measures are not coming from one table.

 

Order

Production

Stock

Priority

 

And so on...

 

So it is not easy to create the table. Furthermore, I would like to change the month and year based on the date slicer.

For example, if I select 2023/Oct by the date slicer, the report should show

 

                    Factory  |  Operation  | 2022 Total | 2022 Oct - 2023 Oct by month | 2023 Total | 2023 Avg.

Order

Production

Stock

Priority

 

Is there a proper approach to make this kind of complicated table by Dax measure?

 

1 ACCEPTED SOLUTION
Dangar332
Super User
Super User

hi, @Young_G_Han 

There no direct posiibility to create such things but you can make a new measure for selected year and make card visual and overlap it in measure or column name

like below
make new measure for selected year only

selected year =
SELECTEDVALUE('Data Date'[Year])
 
make a new card visual and drag above measure here then resize it and disable catagorical label

overlap it on column where you want to use for selected year total and avg. like below image
Dangar332_0-1711970557984.png

here yellow color is card visual after resize it and red color is measure name


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
Dangar332
Super User
Super User

hi, @Young_G_Han 

There no direct posiibility to create such things but you can make a new measure for selected year and make card visual and overlap it in measure or column name

like below
make new measure for selected year only

selected year =
SELECTEDVALUE('Data Date'[Year])
 
make a new card visual and drag above measure here then resize it and disable catagorical label

overlap it on column where you want to use for selected year total and avg. like below image
Dangar332_0-1711970557984.png

here yellow color is card visual after resize it and red color is measure name


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

  Dear Dangar332

 

Nice idea. I supposed that would not be easy.

But your idea is reasonable.

Thank you.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 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.