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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
ellegri
Regular Visitor

Dynamic Title DAX

Hi all, 

 

I am fairly new to Power BI and I am trying to write a DAX for a pie chart title to enable it to state e.g. which Practice has made the lowest number of referrals?

 

Any help would be appreciated.

 

Thanks in advance

1 ACCEPTED SOLUTION
v-weiyan1-msft
Community Support
Community Support

Hi @ellegri ,

 

Based on your description,
I created some data:

vweiyan1msft_0-1706351188445.png

Please try code as below to create a Measure.

Pie chart title = 
VAR Min_referrals = MIN('Table'[referrals])
VAR Min_referrals_Practice = MINX(FILTER(ALL('Table'),'Table'[referrals] = Min_referrals),'Table'[Practice])
RETURN
"Practice " & Min_referrals_Practice & " has made the lowest number of referrals"

Select your visual object , then go to the Visualizations pane.
In the Format area, select the General tab, and then set Title to On to show the title options for the visual.
Next to the Title text, select Conditional formatting (fx).

vweiyan1msft_1-1706351240808.png

vweiyan1msft_3-1706351276808.png

Result is as below.

vweiyan1msft_2-1706351260570.png

 

Best Regards,
Yulia Yan

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-weiyan1-msft
Community Support
Community Support

Hi @ellegri ,

 

Based on your description,
I created some data:

vweiyan1msft_0-1706351188445.png

Please try code as below to create a Measure.

Pie chart title = 
VAR Min_referrals = MIN('Table'[referrals])
VAR Min_referrals_Practice = MINX(FILTER(ALL('Table'),'Table'[referrals] = Min_referrals),'Table'[Practice])
RETURN
"Practice " & Min_referrals_Practice & " has made the lowest number of referrals"

Select your visual object , then go to the Visualizations pane.
In the Format area, select the General tab, and then set Title to On to show the title options for the visual.
Next to the Title text, select Conditional formatting (fx).

vweiyan1msft_1-1706351240808.png

vweiyan1msft_3-1706351276808.png

Result is as below.

vweiyan1msft_2-1706351260570.png

 

Best Regards,
Yulia Yan

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This is more than helpful - thank you so much

lbendlin
Super User
Super User

The title has to be fed by a measure, either implicit ("min referrals") or explicit, using MINX for example.

 

That's pretty much it - if you can't get it to work then you must be trying to use a column.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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