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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
S_JB
Resolver III
Resolver III

Dynamic Measure Title

Hi all

 

Are you able to create a dynamic measure title?

 

The measure I have created is a rolling week view. Currently, the weeks are named week 1,2,3 etc. with a conversion table included. Ideally, I'd like to use the logic that is in the week conversion table to dynamically power the title in the appropriate week's measure.

 

So rather than current week being week 1 it would be week 16.

 

Is this possible?

 

Kind regards

1 ACCEPTED SOLUTION
HarishKM
Impactful Individual
Impactful Individual

@S_JB   Hey Mate ,
First create a disconnected table .

HarishKM_0-1618557304020.png
Now create a measure 

Now Selected =
IF (
HASONEVALUE ( 'DIsconnected table'[Name] ),
SELECTEDVALUE ( 'DIsconnected table'[Name] ),
"Please select"
)
output will be like below.
HarishKM_1-1618557397641.png

 

or You can choose single select only.

Then create a measure using swtich function like this .
Sample =
SWITCH (
TRUE (),
SELECTEDVALUE ( 'DIsconnected table'[Name] ) = "Last 4 Week", [Last 4 week],
SELECTEDVALUE ( 'DIsconnected table'[Name] ) = "qtd", [qtd],
SELECTEDVALUE ( 'DIsconnected table'[Name] ) = "test", [Test],
[Last 4 week]
)

Then drag that measure to your viz . when ever you will select it will populate the result for you . Output will be like below.
HarishKM_2-1618557583385.png


Thank you and enjoy 

 

Kudos will be appriciated .

 

 

View solution in original post

4 REPLIES 4
S_JB
Resolver III
Resolver III

Thanks for your assistance, it's much appreciated!

HarishKM
Impactful Individual
Impactful Individual

@S_JB   Hey Mate ,
First create a disconnected table .

HarishKM_0-1618557304020.png
Now create a measure 

Now Selected =
IF (
HASONEVALUE ( 'DIsconnected table'[Name] ),
SELECTEDVALUE ( 'DIsconnected table'[Name] ),
"Please select"
)
output will be like below.
HarishKM_1-1618557397641.png

 

or You can choose single select only.

Then create a measure using swtich function like this .
Sample =
SWITCH (
TRUE (),
SELECTEDVALUE ( 'DIsconnected table'[Name] ) = "Last 4 Week", [Last 4 week],
SELECTEDVALUE ( 'DIsconnected table'[Name] ) = "qtd", [qtd],
SELECTEDVALUE ( 'DIsconnected table'[Name] ) = "test", [Test],
[Last 4 week]
)

Then drag that measure to your viz . when ever you will select it will populate the result for you . Output will be like below.
HarishKM_2-1618557583385.png


Thank you and enjoy 

 

Kudos will be appriciated .

 

 

v-cazheng-msft
Community Support
Community Support

Hi @S_JB 

Currently, the name of Measures don't support change dynamically. You can vote for the idea in Power BI Ideas.  In this case, you can dynamically change the title of the visual to provide some information to the users. For how to create dynamic title of visual, you can refer Power BI –Dynamically Title name change on visuals.

 

Best Regards

Caiyun Zheng

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Create two measures. One for the value and one for the title.

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.