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

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

Reply
frieso
Regular Visitor

How to filter distinct count across multiple dates

Hi everybody

 

I have a table with a List of opportunities, having dates when the first call of the opportunity took place, when the meeting took place, date of sending the offer, date of receiving the signed contract.

 

I now want to make a table, showing on an employee base how many calls, meetings etc an employee had in a given time of period.

 

i.E

Filter:

From Date 1.1.2017

To Date 18.1.2017

 

The table then shows:

 

EmployeeCallsMeetingsOffersContracts
Tom10523
Chris3331
Mike106210

 

As all the dates are independant and in multiple columns, how can I filter the table to sum up the values?

How can i let the user set the from/to dates on a visual basis?

 

Thanks for your help!

Frieso

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

Hi @frieso,

 

Assume the source table like below:

 

s1.PNG

 

You can open Query Editor, select columns Calls, Meetings, Offers and Contracts, then click Unpivot Columns button get the format below:

 

s2.PNG

 

Apply the modification, go to the report, create a matrix and slicer visuals.

 

s3.PNG

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
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

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

Hi @frieso,

 

Assume the source table like below:

 

s1.PNG

 

You can open Query Editor, select columns Calls, Meetings, Offers and Contracts, then click Unpivot Columns button get the format below:

 

s2.PNG

 

Apply the modification, go to the report, create a matrix and slicer visuals.

 

s3.PNG

 

Best Regards,
Qiuyun Yu

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

First I suggest you unpivot your columns so you have a single date column and a type column (e.g. Call, meeting, contract etc). You can then use a timeline slicer on a calendar table joined to your single date column to filter the period you want. I guess a countrows of the data table will do it. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

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