cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Count distinct value in column, and filter by date in separate column

I have a table called 'Sales Pipeline' with the following columns: - Resource (format: text) - End (format: date) I want to create a measure that counts the number of distinct values in 'Resource', and then filters to only future dates (ie, after today) in 'End' column. Any ideas? Thanks!
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Count distinct value in column, and filter by date in separate column

Hi @shaunguyver

 

How about placing this measure in a Card visual:

 

 

Measure =
CALCULATE ( DISTINCTCOUNT ( Table1[Resource] ), Table1[End] > TODAY () )

 

View solution in original post

1 REPLY 1
Highlighted
Super User III
Super User III

Re: Count distinct value in column, and filter by date in separate column

Hi @shaunguyver

 

How about placing this measure in a Card visual:

 

 

Measure =
CALCULATE ( DISTINCTCOUNT ( Table1[Resource] ), Table1[End] > TODAY () )

 

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors