cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate II
Advocate II

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
Super User IV
Super User IV

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.


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
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

Super User IV
Super User IV

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.


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Wave Release 2

Check out the updates in Power BI.

Overview of Power BI 2020 release wave 2!

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors