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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Sebastian
Advocate III
Advocate III

Dynamic naming of the column designation

Hi all,

 

is there a way to create the designation of a column dinamically?

For example you have a matrix visual and a measure as value. The measure looks like this

 

Year value = calculate(sum(value);year(date)=year(today())-1)

 

The designation in the matrix for the measure should be this year 2016 and next year 2017.

 

Is there still existing a way to create this dynamically based on the  syntax of the measure?

 

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

You can create a measure like below and put it into a Tile visualization:

 

CountryTitle = IF(HASONEVALUE(Geography[Country]),"Sales for "&MAX(Geography[Country]),"Sales for All Countries")

The example above puts things like "Sales for All Countries" or "Sales for USA", etc. depending on what is filtered on the page.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

HI @Sebastian,

 

Current power bi not support to use measure as title. I agree with smoupre's point, it may suitable for your requirement.

Perhaps you can try to submit an idea for this requirement.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi @v-shex-msft@Greg_Deckler

 

thanks for your answer. 

I think I will submit this as an idea. 

 

Regards

Sebastian

Greg_Deckler
Super User
Super User

You can create a measure like below and put it into a Tile visualization:

 

CountryTitle = IF(HASONEVALUE(Geography[Country]),"Sales for "&MAX(Geography[Country]),"Sales for All Countries")

The example above puts things like "Sales for All Countries" or "Sales for USA", etc. depending on what is filtered on the page.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors