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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
jaweher899
Impactful Individual
Impactful Individual

Dynamic column names in field parameter

I've the following pbix file https://1drv.ms/u/s!Amd7BXzYs7AVk3D5iDMIrhfnpQNW?e=lHWRuH

 

The data model is simple 

one fact related to date table and field parameter table

 

jaweher899_0-1671191332146.png

I need to create a dynamic column names, concatenate the month periode selected by the field parameter 

 

jaweher899_1-1671191360036.png

 

jaweher899_2-1671191542812.png

 

 

I do it manually, I duplicate the same script for months june and march and I should do the same for all months 

Parameter = {
    ("Month Name June-2022", NAMEOF('DimDate'[Month Name]), 0,"June-2022","Month Name"),
    ("sales.Reason June-2022", NAMEOF('FactSales'[sales.Reason]), 1,"June-2022","sales.Reason"),
    ("Customer.Email March-2022", NAMEOF('FactSales'[Customer.Email]), 2,"June-2022","Customer.Email"), ("Month Name May-2022", NAMEOF('DimDate'[Month Name]), 0,"March-2022","Month Name"),
    ("sales.Reason March-2022", NAMEOF('FactSales'[sales.Reason]), 1,"March-2022","sales.Reason"),
    ("Customer.Email March-2022", NAMEOF('FactSales'[Customer.Email]), 2,"March-2022","Customer.Email")
}
 
Is there a way to do it dynamically please?

 

1 REPLY 1
amitchandak
Super User
Super User

@jaweher899 , You can have Dynamic Title, I doubt you can dynamic column name

 

But refer this

Show dynamic column name
https://perytus.com/2021/02/04/improve-ux-show-year-in-legend-when-using-time-intelligence-measures/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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