Forum Discussion
Bidirectional filtering with Clustered Column Chart
- 3 years ago
Hi SM321 ,
Please try:
First create a new table:
For X-Axis = {"PL_","PN_","PO_","PT_","PType_","All"}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')))Output:
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)Final output:
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.
Hi SM321 ,
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.
- SM3213 years agoFrequent Visitor
Testing.pbix
Are you able to access this Jianbo?