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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Slicing a visual by a count measure from another visual

I have a table with some values set to 0.  I also have a bar chart that has 10 calculated measures that count each columns total of zeros.  When I select one of these calculated measures on the bar chart, the other visuals do not update to the values that only have 0.

 

I understand there are some issues with slicing by a calculated measure, but is there any workaround for this?

 

Here is what one of those calculated measures looks like: 

Count of Column for 0 =
CALCULATE(COUNT('Table'[Column]), 'Table'[Column]="0")
1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

Do you want to click on the B bar and left table visual left only the row that column=0 and category = 0?  When you click the B bar, it actually give a filter that category=B to the table visual.

11.PNG

 

We suggest that you can use the slicer visual and put the column field.

 

12.PNG

 

 

BTW, pbix as attached.

 

Best regards,

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

Community Support Team _ Dong Li
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

5 REPLIES 5
amitchandak
Super User
Super User


@Anonymous wrote:

.  When I select one of these calculated measures on the bar chart, the other visuals do not update to the values that only have 0.


Do you want to use this calculation as a filter?

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
Anonymous
Not applicable


@amitchandak wrote:

@Anonymous wrote:

.  When I select one of these calculated measures on the bar chart, the other visuals do not update to the values that only have 0.


Do you want to use this calculation as a filter?


@amitchandak 

Yes. I would like for it to update the table visual that I have to contain only the values that contain 0.

Hi @Anonymous ,

 

Do you want to click on the B bar and left table visual left only the row that column=0 and category = 0?  When you click the B bar, it actually give a filter that category=B to the table visual.

11.PNG

 

We suggest that you can use the slicer visual and put the column field.

 

12.PNG

 

 

BTW, pbix as attached.

 

Best regards,

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

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

@v-lid-msft I ended up doing this.  I have multiple 'count for column for 0' measures though, so I had to have a slicer for each (around 10).  Not ideal, but it got the job done.

I think you need a flag. create it has a column

Flag = IF (table[value] =0 ,"Zero Value","Non Zero Value").

 

You might need a bi-directional join, in case this a central/child/fact table and you want to filter parent/dimension table

 

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors