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

Filter 2 Visuals where value is in either column.

Hello, I have created a dashboard that displays writer workflow counts by both primary and secondary writer. Currently, the dashboard has 2 slicers and if you filter my Primary Document Writer it shows the count of documents for the Primary Document Writer and the count of documents for the writers that are listed as the Secondary Document Writer based on the initial filter. The end users have requested that the filter only show a cound of documents where the writer is listed as the Primary or as Secondary. Below is a screenshot of what I currently have setup. Ideally there is just one filter that will filter both visuals showing the count of documents where the writer is listed as either primary or secondary. I have also included a screenshot of dummy data showing what the correct outcome should be for each visual. 

 

kendo1029_0-1661955485936.png

kendo1029_2-1661955736559.png

 

 

 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Anonymous ,

 

Create a new table with the writers then add the following measures:

Primary document = CALCULATE(COUNTROWS('Table'), 'Table'[Primary Document Writer] in VALUES(Writers[Writer]))

Secondary document = CALCULATE(COUNTROWS('Table'), 'Table'[Secondary Document Writer] in VALUES(Writers[Writer]))

 

Now use the table with the writers on the axis and the metrics on the values, if you want to have an overal one you can also create the following one:

 

Total count = [Primary Document] + [Secondary Document]

 

Now just setup has you need, use the slicer of the writer tables:

 

 

MFelix_0-1661977573581.png

MFelix_1-1661977603725.png

 

PBIX file attach.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

1 REPLY 1
MFelix
Super User
Super User

Hi @Anonymous ,

 

Create a new table with the writers then add the following measures:

Primary document = CALCULATE(COUNTROWS('Table'), 'Table'[Primary Document Writer] in VALUES(Writers[Writer]))

Secondary document = CALCULATE(COUNTROWS('Table'), 'Table'[Secondary Document Writer] in VALUES(Writers[Writer]))

 

Now use the table with the writers on the axis and the metrics on the values, if you want to have an overal one you can also create the following one:

 

Total count = [Primary Document] + [Secondary Document]

 

Now just setup has you need, use the slicer of the writer tables:

 

 

MFelix_0-1661977573581.png

MFelix_1-1661977603725.png

 

PBIX file attach.

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



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
Top Kudoed Authors