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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.