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
msam86
Helper I
Helper I

Conditional with dynamic values

Hello friends, how are you? With your help I was able to implement the status of one piece of equipment per year in a pie chart.

 

Now I wanted to implement another pie chart, where I can add up the equipment, regardless of the status. With the 2 graphs I can see the associated information.

 

Ex: 2024

msam86_0-1718714661280.png

Ex: 2025

msam86_1-1718714675917.png

 

I inserted a spreadsheet to demonstrate what I need in the pie chart. The number of equipment will not change, but I need this relationship between the graphs to view the information

 

Ex: 2024

msam86_2-1718714757580.png

 

When I switch to 2025:

msam86_3-1718714853077.png

Can any friend help me?

Regards

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @msam86 

 

Try the following Measure:

 

Measure 2 = 
VAR select_client = SELECTEDVALUE(Dados[Client])
RETURN
COUNTX(
    FILTER(ALL('Dados'),[Client]=select_client),[Client])

 

 

 

vjialongymsft_0-1719826379331.png

 

 

Best Regards,

Jayleny

 

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

6 REPLIES 6
msam86
Helper I
Helper I

Hello my friends,

Can anyone help? 
Regards

Anonymous
Not applicable

Hi @msam86 

 

Try the following Measure:

 

Measure 2 = 
VAR select_client = SELECTEDVALUE(Dados[Client])
RETURN
COUNTX(
    FILTER(ALL('Dados'),[Client]=select_client),[Client])

 

 

 

vjialongymsft_0-1719826379331.png

 

 

Best Regards,

Jayleny

 

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

Anonymous
Not applicable

Hi @msam86 

 

All you need to do is put the fields from your existing table into the pie chart.

vjialongymsft_2-1718763390210.png

 

vjialongymsft_0-1718763364977.pngvjialongymsft_1-1718763371817.png

 

 

 

Best Regards,

Jayleny

 

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

Hi @Anonymous , I understand what you said, but I need another pie chart with customer information. For example, I need to see A = 33, B = 9, C=4....

Regards

Anonymous
Not applicable

Hi @msam86 

 

Drag the column "equipment" into Legend.

vjialongymsft_0-1718847291759.pngvjialongymsft_1-1718847305392.png

 

 

 

 

 

 

 

 

Best Regards,

Jayleny

 

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

Hi @Anonymous . I shared my example. These numbers are provided by dynamic metric.

 

test_sum.pbix

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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