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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
psonawane
Regular Visitor

Print the selected value on the dashboard

Hi, I have a slicer with 4 dimensions such as Status (Values: New, Dismissed,etc) , Department(Values: Technology, Compensation, etc) , Policy(Values: PII, PCI) and Severity(Values: High, Medium, Low). If we select Status a bar char gives Incident Count by Status, if we change the slicer to Department, the same bar chart would show Incident Count by Department.

Now if we have Incident Count by Status and we click on "New" Status bar, there should be text stating 'Status: New'. If we have change the slicer to show Incident Count by Policy and we click on "PII" Policy bar, there should be text stating 'Policy: PII'.

 

Can you please help me with a DAX code. I have one which prints only for one dimension, it does not change if we change the slicer.

Here: SlicerTable has all the Dimension Values.

 

SelectedVal1 = IF(ISFILTERED(SlicerTable[type]),
IF( ISBLANK(
CONCATENATEX (
VALUES ( incidents[Name of Policy] ),
incidents[Name of Policy],
", "
)), BLANK()," Policy: " &
CONCATENATEX (
VALUES ( incidents[Name of Policy] ),
incidents[Name of Policy],
", "
)))
2 REPLIES 2
amitchandak
Super User
Super User

@psonawane , are you looking for Once Slicer for multiple columns ?
https://community.powerbi.com/t5/Desktop/Once-Slicer-for-multiple-columns/td-p/407949

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak That is excatly what I did, now if I select one column from the slicer and click on any bar of the barchart, I want to display what I clicked on the dashboard. And it should reset and change if I select a value from another column from the bar chartIn this I have Policy as my column and I clicked on PCI, hence it is showing that I clicked on Policy:PCI.In this I have Policy as my column and I clicked on PCI, hence it is showing that I clicked on Policy:PCI.Now I have Department as my column from the slicer and I clicked on Engineering, but it still shows values for the Policies. I want to show Department: EngineeringNow I have Department as my column from the slicer and I clicked on Engineering, but it still shows values for the Policies. I want to show Department: Engineering

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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