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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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

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

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.

v-jialongy-msft
Community Support
Community Support

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 @v-jialongy-msft , 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

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 @v-jialongy-msft . I shared my example. These numbers are provided by dynamic metric.

 

test_sum.pbix

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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