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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Alsapeter
Regular Visitor

Dynamic Column headers

screenshot1.PNG

 

I need to display the values for current month (chosen from a slicer), previos month (which is a measure) on a table visual in Power BI.However, when I chose the reporting month in the slicer, the column headers are seen as Measure Names as opposed to the Current Month, Previous Month e.g. 202212, 202211 - This is how it needs to be shown. Does anyone have any ideas?

Below is a screenshot of the question I am asking, I need CurrentMonth to show 2022-02, Previous Month to show 2022-01, previous to previous month to show as 2021-12

2 REPLIES 2
Alsapeter
Regular Visitor

Hello @Idrissshatila  I tried this already, the MAX (Calendar year) - 1 does not work syntatically. This solution does not work. I also feel this logic is incorrect

Idrissshatila
Super User
Super User

Hello @Alsapeter ,

 

check this link https://youtu.be/6B-n0xM8ZvA

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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