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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.