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

Show Value in Chart from DAX

Hello all
I have a problem with DAX
I have slicer company and month for 3 companies. But there is a need to add one option in the slicer company which is "Consol". When I press the console, then all the values will appear as shown on the donut chart now.

PowerVisualBI_0-1660456757047.png

I need a DAX formula when I press a company in a certain month, then the donut chart will display the revenue from that company (I have made a DAX formula). But if I press the console, it will display all the revenue values of each company.

Actually the choice of the Company Console also has its own value. But I don't show the value, because I want the value for the company console options from the other three companies. 

I just want when I click the console option that appears is the Revenue value of the three companies from the existing DAX formula.

The following is the file
https://drive.google.com/file/d/1nlZhVeagoqqgaCfe5gU6mkKN7Kkd0GYJ/view?usp=sharing

2 REPLIES 2
v-jayw-msft
Community Support
Community Support

Hi @PowerVisualBI ,

 

Please consider to create a measure like below to filter the chart:

Measure = IF(selectedvalue('table'[company]) in values('slicer'[company]),1,0)

Add this measure to visual filter and set value = 1

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Where did the 'Slicer'[company] come from sir @v-jayw-msft 

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!

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.