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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
MichaelWacey
Frequent Visitor

Set the value of a Pie Chart Title based on a Slicer and Visual Filter

See the attached PBIX file for details. This is from our development enviornment so it is not true data.

 

I want to create a report with a Slicer and Nine Pie Charts. The slicer lets the User Select a Client and a Program. The nine pie Charts all have ResponseFacts.FactValue for the value and ResponseDIM.ItemLabel for the Legend. Each Pe Chart has a Visual Filter of ResponseDIM.GroupSequence. For the first pie chart, ResponseDIM.GroupSequence is 0, for the second it is 1, for the third, it is 2, and so on. For this example, I only did three of them. So far, everything wors as exepcted.

 

I put the ResponseDIM.GroupLabel as the value for the title. But, it shows the first value for that, not the one based on the Client, Program, and ResponseDIM.GroupSequence value. I have searched for this and found many examples of Dynamic Titles but none that refer to a Slicer and a visual filter. I have tried writing a DAX expression that takes all the selected values into account but none of them worked. I feel that there is a combination that I am just not finding.

 

I thought the help said to include a .PBIX file. But I got here and do not see how to do so, There does not appear to be an insert file option in the menu.

 

Here is the model:

MichaelWacey_0-1718396593666.png

Here is the report:

MichaelWacey_1-1718396633823.png

Here are the slicer settings:

MichaelWacey_2-1718396672338.png

 

Here are the settings for the second Pie Chart:

MichaelWacey_3-1718396741189.png

 

Here is the Title setting for the Pie Chart visuals:

MichaelWacey_4-1718396823984.png

 

 

PLease let me know if you need anything else.

4 REPLIES 4
MichaelWacey
Frequent Visitor

Here is some sample data:

 

Clients 
IDName
1A
2B
3C

 

Programs  
IDClientIDName
11Client A Program 1
21Client A Program 2
32Client B Program 3
42Client B Program 4
53Client C Program 5
63Client C Program 6

 

Responses    
IDGroupNameGroupSequenceLabelNameLabelSequence
1G11G1L11
2G11G1L22
3G11G1L33
4G22G2L11
5G22G2L22
6G22G2L33
7G33G3L11
8G33G3L22
9G33G3L33

 

 

ResponseFacts   
IDPIDRIDFV
1271
2271
3281
4241
5241
6371
7381
8381
9371

 

The first three are dimension tables and the last one is the fact table. For this purpose I excluded missions since Ido not think it plays a role here but I can make up that data if it would help.

 

The first two dmension, Client and Program are in one slicer so a user can select a client and then one or more programs for that client. Lets create two Pie Charts. The value is FV from the Fact table. The Legend is LabelName from the Responses dimension. On the visual filters for the first pie chart, I set Group Sequence to be 1. On the second Pie Chart, I do the same thing but set group sequence to be 2. I have tried many ways to set the Pie Chart Title to be GroupName. But they always result in G1 being selected. No matter what I do, it will not show G2 or G3 for the Pie Chart Title.

 

I get that this explanation is hard to follow. I will look into putting a link to a PBX file.

Anonymous
Not applicable

Hi @MichaelWacey,

So you mean you create a calculate column to show the field value based on filter selections?

If that's the case, current power bi does not support to create dynamic calculated column/table based on filter effects. They are works on different level and you can't use child to affect their parent.

Notice: the data level of power bi(from parent to child level)

Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table) -> data view with virtual tables(measure, visual, filter, slicer)

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Hi @MichaelWacey ,

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,

Xiaoxin Sheng

Ritaf1983
Super User
Super User

Hi @MichaelWacey 

I apologize, but at least for me, the question is unclear.

I recommend attaching an image with the desired result.

Regarding attaching a file, you can save it to Drive or any other shared folder and share it using the link.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

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.