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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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