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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
SM321
Frequent Visitor

Bidirectional filtering with Clustered Column Chart

I am trying to create a column chart that should show me the total count of rows vs count of empty values for a specific field. And clicking on the bar, should filter the details table and show the values which has empty rows. 

For ex: In the attached PBIX, I am looking to show bars of Product Name, Product Type, Team, Lead, Owner as columns. And let's say Product Type column should show as 17 (Total Count) vs 8 (Count of empty values of Product Type) and when I click on 8, the above table should show only the empty values for product type (Bidirectional filtering) and similarly for others. Any suggestion, how to get this done?

When I filter the category slicer, it refreshes rest of visuals but for the column chart it is not refreshing any other tile. 

 

Thanks in advance!

PowerBI
Testing.pbix

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @SM321 ,

 

Please try:

First create a new table:

For X-Axis = {"PL_","PN_","PO_","PT_","PType_","All"}

vjianbolimsft_0-1687244655997.png

Then apply this measure to the Clustered Column Chart:

Measure = SWITCH(SELECTEDVALUE('For X-Axis'[Value]),
"PL_",[PL_],
"PN_",[PN_],
"PO_",[PO_],
"PT_",[PT_],
"PType",[PType_],
"All",COUNTROWS(ALL('Table')))

vjianbolimsft_1-1687244722074.png

Output:

vjianbolimsft_2-1687244736013.png

Apply the measure Flag to the table visual's filter:

Flag = 
SWITCH(TRUE(),
SELECTEDVALUE('For X-Axis'[Value])="PL_"&&SELECTEDVALUE('Table'[Product Lead])=BLANK(),1,
SELECTEDVALUE('For X-Axis'[Value])="PN_"&&SELECTEDVALUE('Table'[Product Name])=BLANK(),1,
SELECTEDVALUE('For X-Axis'[Value])="PO_"&&SELECTEDVALUE('Table'[Product Owner])=BLANK(),1,
SELECTEDVALUE('For X-Axis'[Value])="PT_"&&SELECTEDVALUE('Table'[Product Team])=BLANK(),1,
SELECTEDVALUE('For X-Axis'[Value])="PType_"&&SELECTEDVALUE('Table'[Product Type])=BLANK(),1,
NOT(ISFILTERED('For X-Axis'[Value])),1,
SELECTEDVALUE('For X-Axis'[Value])="All",1)

vjianbolimsft_3-1687244769160.png

Final output:

vjianbolimsft_4-1687244804754.png

vjianbolimsft_5-1687244817776.png

Best Regards,

Jianbo 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

3 REPLIES 3
v-jianboli-msft
Community Support
Community Support

Hi @SM321 ,

 

Please try:

First create a new table:

For X-Axis = {"PL_","PN_","PO_","PT_","PType_","All"}

vjianbolimsft_0-1687244655997.png

Then apply this measure to the Clustered Column Chart:

Measure = SWITCH(SELECTEDVALUE('For X-Axis'[Value]),
"PL_",[PL_],
"PN_",[PN_],
"PO_",[PO_],
"PT_",[PT_],
"PType",[PType_],
"All",COUNTROWS(ALL('Table')))

vjianbolimsft_1-1687244722074.png

Output:

vjianbolimsft_2-1687244736013.png

Apply the measure Flag to the table visual's filter:

Flag = 
SWITCH(TRUE(),
SELECTEDVALUE('For X-Axis'[Value])="PL_"&&SELECTEDVALUE('Table'[Product Lead])=BLANK(),1,
SELECTEDVALUE('For X-Axis'[Value])="PN_"&&SELECTEDVALUE('Table'[Product Name])=BLANK(),1,
SELECTEDVALUE('For X-Axis'[Value])="PO_"&&SELECTEDVALUE('Table'[Product Owner])=BLANK(),1,
SELECTEDVALUE('For X-Axis'[Value])="PT_"&&SELECTEDVALUE('Table'[Product Team])=BLANK(),1,
SELECTEDVALUE('For X-Axis'[Value])="PType_"&&SELECTEDVALUE('Table'[Product Type])=BLANK(),1,
NOT(ISFILTERED('For X-Axis'[Value])),1,
SELECTEDVALUE('For X-Axis'[Value])="All",1)

vjianbolimsft_3-1687244769160.png

Final output:

vjianbolimsft_4-1687244804754.png

vjianbolimsft_5-1687244817776.png

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-jianboli-msft
Community Support
Community Support

Hi @SM321 ,

 

vjianbolimsft_0-1687168025533.png

The sample you provided is protected by your org's information protection policy.

Please provide me with your pbix file after removing sensitive data.

 

Refer to:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

How to apply sensitivity labels in Power BI - Power BI | Microsoft Learn

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Testing.pbix

Are you able to access this Jianbo?

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.