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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
msam86
Helper I
Helper I

Consolidade values in a pie chart

Hello friends, how are you?

I need help with the following scenario: I have several cars, where there is a year related to each car.


Through the selected year, I had a status according to the year of manufacture of the car. To do this, I created a parameter where it adds +1 to the year and brings the status dynamically according to the year of the parameter.


In the StatusMeasure by StatusType graph, information is generated dynamically with the year parameter. Every time you modify the parameter bar, it modifies the graph.

However, in the StatusMeasure by Car and StatusType graph, it shows each status related to the car. Is it possible to consolidate which car it is and bring up the number of occurrences (NA, OK, Recall)?

I've attached the pbix file.
calculate clients.pbix

Regards

4 REPLIES 4
v-yajiewan-msft
Community Support
Community Support

Hi @msam86 ,

 

If you want to check each car and all three statuses associated with it, we can first create a new measure as shown below:

 

ConsolidatedStatus = 
VAR NA_Count = countx(
    filter(('Data'),[StatusPerYear]="NA"),[StatusPerYear])
VAR OK_Count = countx(
    filter(('Data'),[StatusPerYear]="Ok"),[StatusPerYear])
VAR Recall_Count = countx(
    filter(('Data'),[StatusPerYear]="Recall"),[StatusPerYear])
RETURN
"NA: " & NA_Count & ", OK: " & OK_Count & ", Recall: " & Recall_Count

 

Then modify the chart like this:

vyajiewanmsft_0-1721633120642.png

In this way, when we hover on the part of the visual, we can view different types of cars and the number of associated states.

vyajiewanmsft_1-1721633151385.png

Best regards,

Joyce

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

 

Hi @v-yajiewan-msft,

 

Thanks for your response.

I think you solved part of my problem. Now I can see the consolidated cars, but I need to count this status (Recall, Ok and NA), and return this number by type of car.

It's possible?

Regards




Hi @msam86 ,
Yes, you could check the count of status by type of car in Tooltips:
vyajiewanmsft_1-1721633151385.png

Hi @v-yajiewan-msft 

 

I saw it in the tooltips. I just want to add ConsolidatedStatus of car. I would like to see for Volvo number 3 (NA 2 + OK 0 + Recall 1).
This way it will be reflected for other cars and the pie chart will be cleaner.

Thanks a lot for your help.

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! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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