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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
danielcarreira1
Regular Visitor

How to make table select new columns automatically

Hi all,

 

I have a report that each month will add a new column (pivoted data) with new figures, what i need is for the table the user sees to select automatically that new End of Month figures automatically.

 

Best Regards,

Daniel

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @danielcarreira1 ,

 

According to your statement, I know your table should look like a pivoted data. It has a Keycolumn like category and many month columns with data for each month. You will add a new column with current month data by refresh and you want to show the latest data in your visual. Power BI couldn't catch column header directly. Power BI always calculates by column. So I suggest you to use "Unpivot Other Columns" function by select your Keycolumn to transform month value into one column.

Here is my sample.

1.png

New Table:

1.png

Create a measure, then create a Matrix visual, add this measure into visual level filter and set it to show items when value = 1.

Measure = 
VAR _LatestMonth = MAXX(ALL(Sheet3),Sheet3[Month])
RETURN
if(MAX(Sheet3[Month])=_LatestMonth,1,0)

Result is as below.

1.png

If you add a column in your data source, you can refresh data in Power BI Desktop, and matrix will show data in latest month.

1.png

Best Regards,
Rico Zhou

 

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

1 REPLY 1
Anonymous
Not applicable

Hi @danielcarreira1 ,

 

According to your statement, I know your table should look like a pivoted data. It has a Keycolumn like category and many month columns with data for each month. You will add a new column with current month data by refresh and you want to show the latest data in your visual. Power BI couldn't catch column header directly. Power BI always calculates by column. So I suggest you to use "Unpivot Other Columns" function by select your Keycolumn to transform month value into one column.

Here is my sample.

1.png

New Table:

1.png

Create a measure, then create a Matrix visual, add this measure into visual level filter and set it to show items when value = 1.

Measure = 
VAR _LatestMonth = MAXX(ALL(Sheet3),Sheet3[Month])
RETURN
if(MAX(Sheet3[Month])=_LatestMonth,1,0)

Result is as below.

1.png

If you add a column in your data source, you can refresh data in Power BI Desktop, and matrix will show data in latest month.

1.png

Best Regards,
Rico Zhou

 

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

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.